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

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, 10 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/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..b46a8babd4381425c16090f92792d4c7de717cf6 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,
@@ -156,6 +158,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;

Powered by Google App Engine
This is Rietveld 408576698