DeviceOAuth2TokenServiceFactory ⇏ BrowserProcess

DeviceOAuth2TokenServiceFactory has an undesirable dependency on
g_browser_process. It uses it to obtain LocalState and
SharedURLLoaderFactory. This CL removes the dependency on
g_browser_process by passing in these dependencies explicitly.

Note that the tests still depend on TestingBrowserProcess -
this dependency will also be removed in a follow up CL
(for tests in the settings package).

See go/cros-untangle2

Bug: 446937
Change-Id: I9a046b04175bef6b5af0945d03b03fe1e777fb90
Reviewed-on: https://chromium-review.googlesource.com/1228153
Commit-Queue: A Olsen <olsen@chromium.org>
Reviewed-by: Maksim Ivanov <emaxx@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#592358}
7 files changed