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

Unified Diff: chrome/browser/sync/internal_api/debug_info_event_listener.cc

Issue 9702083: sync: Count and report reflected updates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update python test server Created 8 years, 9 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
Index: chrome/browser/sync/internal_api/debug_info_event_listener.cc
diff --git a/chrome/browser/sync/internal_api/debug_info_event_listener.cc b/chrome/browser/sync/internal_api/debug_info_event_listener.cc
index e9cc329b7c46e3ee285226e3f6d1f86810bdba53..a043bc6aac742cf76348de210b80ffffb0430948 100644
--- a/chrome/browser/sync/internal_api/debug_info_event_listener.cc
+++ b/chrome/browser/sync/internal_api/debug_info_event_listener.cc
@@ -32,6 +32,15 @@ void DebugInfoEventListener::OnSyncCycleCompleted(
sync_completed_event_info->set_num_server_conflicts(
snapshot->num_server_conflicts);
+ sync_completed_event_info->set_num_updates_downloaded(
+ snapshot->syncer_status.num_updates_downloaded_total);
+ sync_completed_event_info->set_num_reflected_updates_downloaded(
+ snapshot->syncer_status.num_reflected_updates_downloaded_total);
+ sync_completed_event_info->mutable_caller_info()->set_source(
+ snapshot->source.updates_source);
+ sync_completed_event_info->mutable_caller_info()->set_notifications_enabled(
+ snapshot->notifications_enabled);
+
AddEventToQueue(event_info);
}

Powered by Google App Engine
This is Rietveld 408576698