diff options
author | nyquist@chromium.org <nyquist@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-13 20:10:16 +0000 |
---|---|---|
committer | nyquist@chromium.org <nyquist@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-13 20:10:16 +0000 |
commit | fc2137739ecaee6b917460f4de75ec2587b94824 (patch) | |
tree | 5557aea95843cadd7ab90afb7f8be10c75889d3e /chrome/browser/sync/profile_sync_service_harness.cc | |
parent | db0d2edeb44682531b95083ab394d993d3849682 (diff) | |
download | chromium_src-fc2137739ecaee6b917460f4de75ec2587b94824.zip chromium_src-fc2137739ecaee6b917460f4de75ec2587b94824.tar.gz chromium_src-fc2137739ecaee6b917460f4de75ec2587b94824.tar.bz2 |
[sync] Make SetSetupInProgress kick sync engine when needed
When we clear the sync setup_in_progress flag, and the sync engine is
not already initialized, we should should set the sync setup completed
flag, and kick the sync engine.
BUG=None
TEST=unit_tests
Review URL: https://chromiumcodereview.appspot.com/10534075
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141952 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/profile_sync_service_harness.cc')
-rw-r--r-- | chrome/browser/sync/profile_sync_service_harness.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/sync/profile_sync_service_harness.cc b/chrome/browser/sync/profile_sync_service_harness.cc index 5e4c33b..e337b51 100644 --- a/chrome/browser/sync/profile_sync_service_harness.cc +++ b/chrome/browser/sync/profile_sync_service_harness.cc @@ -171,7 +171,7 @@ bool ProfileSyncServiceHarness::SetupSync( // Tell the sync service that setup is in progress so we don't start syncing // until we've finished configuration. - service_->set_setup_in_progress(true); + service_->SetSetupInProgress(true); // Authenticate sync client using GAIA credentials. if (!CommandLine::ForCurrentProcess()->HasSwitch( @@ -238,7 +238,7 @@ bool ProfileSyncServiceHarness::SetupSync( } // Notify ProfileSyncService that we are done with configuration. - service_->set_setup_in_progress(false); + service_->SetSetupInProgress(false); // Indicate to the browser that sync setup is complete. service()->SetSyncSetupCompleted(); |