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

Unified Diff: chrome/browser/sync/engine/all_status.cc

Issue 7013040: Add information about sync session and other useful data to about:sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix cr feedback. Created 9 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
« no previous file with comments | « no previous file | chrome/browser/sync/engine/syncapi.h » ('j') | chrome/browser/sync/sync_ui_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/all_status.cc
diff --git a/chrome/browser/sync/engine/all_status.cc b/chrome/browser/sync/engine/all_status.cc
index 83d148abf0d04c88875f73b4b76eb30fe9c4231d..4d61d7f3ba5b44bbf86e4481d6221d6cc232cc1d 100644
--- a/chrome/browser/sync/engine/all_status.cc
+++ b/chrome/browser/sync/engine/all_status.cc
@@ -79,6 +79,12 @@ sync_api::SyncManager::Status AllStatus::CalcSyncing(
snapshot->syncer_status.num_local_overwrites;
status.num_server_overwrites_total +=
snapshot->syncer_status.num_server_overwrites;
+ if (snapshot->syncer_status.num_successful_commits == 0 &&
+ snapshot->syncer_status.num_updates_downloaded_total == 0) {
+ ++status.empty_get_updates;
akalin 2011/05/16 22:34:58 rename to "useless_sync_cycles"
+ } else {
+ ++status.nonempty_get_updates;
akalin 2011/05/16 22:34:58 rename to "useful_sync_cycles"
+ }
}
return status;
}
« no previous file with comments | « no previous file | chrome/browser/sync/engine/syncapi.h » ('j') | chrome/browser/sync/sync_ui_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698