Chromium Code Reviews| Index: chrome/browser/sync/internal_api/sync_manager.h |
| diff --git a/chrome/browser/sync/internal_api/sync_manager.h b/chrome/browser/sync/internal_api/sync_manager.h |
| index f0ece708c8126ffb3aab36519f88a0703ecdde49..6fb8e1ddb405b006f2cc302078318efb3d6443a7 100644 |
| --- a/chrome/browser/sync/internal_api/sync_manager.h |
| +++ b/chrome/browser/sync/internal_api/sync_manager.h |
| @@ -94,6 +94,8 @@ class SyncManager { |
| // The internal instance is in an unrecognizable state. This should not |
| // happen. |
| INVALID = 0, |
| + // A sync has not happened since restart. |
| + UNINITIALIZED, |
| // Can't connect to server, but there are no pending changes in |
| // our local cache. |
| OFFLINE, |
| @@ -104,8 +106,9 @@ class SyncManager { |
| SYNCING, |
| // Connected, no pending changes. |
| READY, |
| - // Can't connect to server, and we haven't completed the initial |
| - // sync yet. So there's nothing we can do but wait for the server. |
| + // Can't connect to server. |
|
rlarocque
2012/02/03 18:55:03
If we're going to change the meaning of an enum, w
lipalani1
2012/02/07 23:34:11
Done.
|
| + // The state indicates there are no pending changes but |
| + // the client is possibly trying to sync because of a notification. |
| OFFLINE_UNUSABLE, |
| SUMMARY_STATUS_COUNT, |
| @@ -156,6 +159,9 @@ class SyncManager { |
| int nonempty_get_updates; |
| int empty_get_updates; |
| + // Number of sync cycles. |
| + int sync_count; |
| + |
| // Count of useless and useful syncs we perform. |
| int useless_sync_cycles; |
| int useful_sync_cycles; |