summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/profile_sync_service.h
diff options
context:
space:
mode:
authornyquist@chromium.org <nyquist@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-13 20:10:16 +0000
committernyquist@chromium.org <nyquist@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-13 20:10:16 +0000
commitfc2137739ecaee6b917460f4de75ec2587b94824 (patch)
tree5557aea95843cadd7ab90afb7f8be10c75889d3e /chrome/browser/sync/profile_sync_service.h
parentdb0d2edeb44682531b95083ab394d993d3849682 (diff)
downloadchromium_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.h')
-rw-r--r--chrome/browser/sync/profile_sync_service.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index c446046..d00dac6 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -279,9 +279,9 @@ class ProfileSyncService : public browser_sync::SyncFrontend,
// downloading data types yet (we don't start syncing until after sync setup
// is complete). The UI calls this as soon as any part of the signin wizard is
// displayed (even just the login UI).
- void set_setup_in_progress(bool setup_in_progress) {
- setup_in_progress_ = setup_in_progress;
- }
+ // If |setup_in_progress| is false, this also kicks the sync engine to ensure
+ // that data download starts.
+ virtual void SetSetupInProgress(bool setup_in_progress);
// Returns true if the SyncBackendHost has told us it's ready to accept
// changes.