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

Unified Diff: chrome/browser/sync/internal_api/sync_manager.h

Issue 9323015: [Sync] - In about:sync page display if the first sync after restart has taken place or not. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. Created 8 years, 11 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
« no previous file with comments | « chrome/browser/sync/engine/all_status.cc ('k') | chrome/browser/sync/internal_api/sync_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « chrome/browser/sync/engine/all_status.cc ('k') | chrome/browser/sync/internal_api/sync_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698