Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5976)

Unified Diff: chrome/browser/sync/profile_sync_service.h

Issue 310103004: Add integraton test for sync backup/rollback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup includes Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 14882ba117b5887c6f755511dd61ff34c8885425..5e6f1cca8b93002e540a76c8fa899c57188f0d3e 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -766,6 +766,10 @@ class ProfileSyncService : public ProfileSyncServiceBase,
return backend_mode_;
}
+ bool is_syncing() const {
rlarocque 2014/06/03 22:59:48 How does this differ from ShouldPushChanges()?
haitaol1 2014/06/04 18:21:30 That should work too. Removed this. On 2014/06/03
+ return is_syncing_;
+ }
+
protected:
// Helper to configure the priority data types.
void ConfigurePriorityDataTypes();
@@ -968,6 +972,9 @@ class ProfileSyncService : public ProfileSyncServiceBase,
// Whether the SyncBackendHost has been initialized.
bool backend_initialized_;
+ // Whether StartSyncingWithServer() has been called.
+ bool is_syncing_;
+
// Set when sync receives DISABLED_BY_ADMIN error from server. Prevents
// ProfileSyncService from starting backend till browser restarted or user
// signed out.

Powered by Google App Engine
This is Rietveld 408576698