Chromium Code Reviews| 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..fd2c8e19dcfe9adc194fe5ee497d1d2a0b52e1cd 100644 |
| --- a/chrome/browser/sync/about_sync_util.cc |
| +++ b/chrome/browser/sync/about_sync_util.cc |
| @@ -253,6 +253,15 @@ 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_unknown(section_nudge_info, "Unknown Source"); |
|
rlarocque
2012/09/24 23:24:37
There should be no nudges with source unknown. Th
|
| + 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 +368,14 @@ scoped_ptr<DictionaryValue> ConstructAboutInformation( |
| updates_remaining.SetValue(full_status.updates_available); |
| } |
| + if (is_status_valid) { |
| + nudge_source_unknown.SetValue(full_status.nudge_source_unknown); |
| + 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); |