Chromium Code Reviews| 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. |