chromium: Move the login detection setup in a function
chromium: Move the login detection setup in a function

alban/goa-browser-extension,alban/goa-browser-extension,alban/goa-browser-extension,alban/goa-browser-extension