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

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: Fixing 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/engine/syncapi.h » ('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..47f0e2a674046952d3dbcd362954ae7a73dfd840 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.useless_sync_cycles;
+ } else {
+ ++status.useful_sync_cycles;
+ }
}
return status;
}
« no previous file with comments | « no previous file | chrome/browser/sync/engine/syncapi.h » ('j') | chrome/browser/sync/engine/syncapi.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698