Index: chrome/browser/sync/profile_sync_service.h |
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h |
index 4b48d05230bc0ced2537a1235d930aea6621eed8..ddabd2927ba4ee739a058e2505aa0b27df244aef 100644 |
--- a/chrome/browser/sync/profile_sync_service.h |
+++ b/chrome/browser/sync/profile_sync_service.h |
@@ -480,6 +480,12 @@ class ProfileSyncService : public browser_sync::SyncFrontend, |
SigninManager* signin() { return signin_.get(); } |
const std::string& cros_user() const { return cros_user_; } |
+ // Stops the sync backend and sets the flag for suppressing sync startup. |
+ void StopAndSuppress(); |
+ |
+ // Resets the flag for suppressing sync startup and starts the sync backend. |
+ void UnsuppressAndStart(); |
+ |
// Marks all currently registered types as "acknowledged" so we won't prompt |
// the user about them any more. |
void AcknowledgeSyncedTypes(); |
@@ -541,6 +547,10 @@ class ProfileSyncService : public browser_sync::SyncFrontend, |
friend class ProfileSyncServiceForWizardTest; |
FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTest, InitialState); |
+ // Starts up sync if it is not suppressed and preconditions are met. |
+ // Called from Initialize() and UnsuppressAndStart(). |
+ void TryStart(); |
+ |
// Called when we've determined that we don't need a passphrase (either |
// because OnPassphraseAccepted() was called, or because we've gotten a |
// OnPassphraseRequired() but no data types are enabled). |