AccountTrackerService needs to manually enable Network Fetches.
commit833f0fc8245b2792b996bf765243fb4433a979a2
authormlerman <mlerman@chromium.org>
Thu, 8 Jan 2015 23:40:31 +0000 (8 15:40 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 8 Jan 2015 23:41:26 +0000 (8 23:41 +0000)
tree6768039e151d8835794b925ff20c14015bf240f3
parentfdfea459b1e5b3ffae10b781a33f884b99a0f2a4
AccountTrackerService needs to manually enable Network Fetches.

AccountTrackerService, when instantiated during Profile startup, can attempt network calls before all services all ready. This is prevented by created a specific EnableNetworkFetches() method which is called by the Profile once KeyedServices are initialized.

This is a re-land of https://codereview.chromium.org/805883002/ (which was reverted) with the addition that on Android the AccountTrackerService still only executes a fetch if there's no gaia-id.

BUG=442011, 441399, 432286

Review URL: https://codereview.chromium.org/812413002

Cr-Commit-Position: refs/heads/master@{#310629}
chrome/browser/profiles/profile_manager.cc
chrome/browser/signin/signin_manager_unittest.cc
components/signin/core/browser/account_tracker_service.cc
components/signin/core/browser/account_tracker_service.h
components/signin/core/browser/account_tracker_service_unittest.cc