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

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: Upload before commit. 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 | « chrome/browser/sync/backend_migrator_unittest.cc ('k') | chrome/browser/sync/engine/syncapi.h » ('j') | no next file with comments »
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 77c47d032a524e0f99181c77f6cbc0da40cb42b3..2c2c37a7f09233a285cdd761a68ca9e6631558a7 100644
--- a/chrome/browser/sync/engine/all_status.cc
+++ b/chrome/browser/sync/engine/all_status.cc
@@ -79,6 +79,17 @@ 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_updates_downloaded_total == 0) {
+ ++status.empty_get_updates;
+ } else {
+ ++status.nonempty_get_updates;
+ }
+ if (snapshot->syncer_status.num_successful_commits == 0 &&
+ snapshot->syncer_status.num_updates_downloaded_total == 0) {
+ ++status.useless_sync_cycles;
+ } else {
+ ++status.useful_sync_cycles;
+ }
}
return status;
}
« no previous file with comments | « chrome/browser/sync/backend_migrator_unittest.cc ('k') | chrome/browser/sync/engine/syncapi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698