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

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 a bug. 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..ed6aa7cef1a85f271ac642acf8f3059fd8eb5884 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_getupdates;
akalin 2011/05/13 22:01:42 getupdates -> get_updates
lipalani1 2011/05/13 22:35:39 Done.
+ } else {
+ ++status.nonempty_getupdates;
akalin 2011/05/13 22:01:42 can't num_successful_commits be non-zero, i.e. can
lipalani1 2011/05/13 22:35:39 Not sure i understand. if the commits is zero and
akalin 2011/05/16 22:11:23 I mean if the download count is 0 and the commit c
ncarter (slow) 2011/05/16 22:57:50 I also don't understand why the commit counter fac
+ }
}
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