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

Unified Diff: chrome/browser/sync/about_sync_util.cc

Issue 10991005: Added nudge source counters to about:sync. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed indentation Created 8 years, 3 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 | sync/engine/all_status.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/about_sync_util.cc
diff --git a/chrome/browser/sync/about_sync_util.cc b/chrome/browser/sync/about_sync_util.cc
index 5138a3ce5a7d86bf9947fe0e2b8458604a827a9a..26c6f375f1dc0aaaaf25e576944b2f038672c115 100644
--- a/chrome/browser/sync/about_sync_util.cc
+++ b/chrome/browser/sync/about_sync_util.cc
@@ -253,6 +253,14 @@ scoped_ptr<DictionaryValue> ConstructAboutInformation(
IntSyncStat committed_count(section_that_cycle, "Committed Count");
IntSyncStat entries(section_that_cycle, "Entries");
+ ListValue* section_nudge_info = AddSection(
+ stats_list, "Nudge Source Counters");
+ IntSyncStat nudge_source_notification(
+ section_nudge_info, "Server Invalidations");
+ IntSyncStat nudge_source_local(section_nudge_info, "Local Changes");
+ IntSyncStat nudge_source_continuation(section_nudge_info, "Continuations");
+ IntSyncStat nudge_source_local_refresh(section_nudge_info, "Local Refreshes");
+
// This list of sections belongs in the 'details' field of the returned
// message.
about_info->Set("details", stats_list);
@@ -359,6 +367,13 @@ scoped_ptr<DictionaryValue> ConstructAboutInformation(
updates_remaining.SetValue(full_status.updates_available);
}
+ if (is_status_valid) {
+ nudge_source_notification.SetValue(full_status.nudge_source_notification);
+ nudge_source_local.SetValue(full_status.nudge_source_local);
+ nudge_source_continuation.SetValue(full_status.nudge_source_continuation);
+ nudge_source_local_refresh.SetValue(full_status.nudge_source_local_refresh);
+ }
+
if (snapshot.is_initialized()) {
updates_downloaded.SetValue(
snapshot.model_neutral_state().num_updates_downloaded_total);
« no previous file with comments | « no previous file | sync/engine/all_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698