diff options
author | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 05:47:01 +0000 |
---|---|---|
committer | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 05:47:01 +0000 |
commit | 50c2aab8d749b4b291069c7e88e28324e88edc19 (patch) | |
tree | 321dbdb7897a5e29087b1b9f9cb618e2e94e80cc /chrome/browser/sync | |
parent | c6fc87c6e2671d7aa3a8251554df204fbe72079d (diff) | |
download | chromium_src-50c2aab8d749b4b291069c7e88e28324e88edc19.zip chromium_src-50c2aab8d749b4b291069c7e88e28324e88edc19.tar.gz chromium_src-50c2aab8d749b4b291069c7e88e28324e88edc19.tar.bz2 |
Clear the suppress-start flag when a user submits credentials, since this indicates a desire to resume using sync.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/4139009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64576 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync')
-rw-r--r-- | chrome/browser/sync/profile_sync_service.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc index 3123303..7b210d0 100644 --- a/chrome/browser/sync/profile_sync_service.cc +++ b/chrome/browser/sync/profile_sync_service.cc @@ -815,6 +815,12 @@ void ProfileSyncService::OnUserSubmittedAuth( signin_.SignOut(); } + // The user has submitted credentials, which indicates they don't + // want to suppress start up anymore. + PrefService* prefs = profile_->GetPrefs(); + prefs->SetBoolean(prefs::kSyncSuppressStart, false); + prefs->ScheduleSavePersistentPrefs(); + signin_.StartSignIn(username, password, last_auth_error_.captcha().token, |