| Index: sync/internal_api/debug_info_event_listener.cc
|
| diff --git a/sync/internal_api/debug_info_event_listener.cc b/sync/internal_api/debug_info_event_listener.cc
|
| index 53fc9b1a4e42d22a1eeb1ddb29a96fe4a63bd23b..6b3cd23415d89210e367c988e62943e896a27e1e 100644
|
| --- a/sync/internal_api/debug_info_event_listener.cc
|
| +++ b/sync/internal_api/debug_info_event_listener.cc
|
| @@ -17,31 +17,28 @@ DebugInfoEventListener::~DebugInfoEventListener() {
|
| }
|
|
|
| void DebugInfoEventListener::OnSyncCycleCompleted(
|
| - const SyncSessionSnapshot* snapshot) {
|
| - if (!snapshot)
|
| - return;
|
| -
|
| + const SyncSessionSnapshot& snapshot) {
|
| sync_pb::DebugEventInfo event_info;
|
| sync_pb::SyncCycleCompletedEventInfo* sync_completed_event_info =
|
| event_info.mutable_sync_cycle_completed_event_info();
|
|
|
| sync_completed_event_info->set_num_encryption_conflicts(
|
| - snapshot->num_encryption_conflicts);
|
| + snapshot.num_encryption_conflicts());
|
| sync_completed_event_info->set_num_hierarchy_conflicts(
|
| - snapshot->num_hierarchy_conflicts);
|
| + snapshot.num_hierarchy_conflicts());
|
| sync_completed_event_info->set_num_simple_conflicts(
|
| - snapshot->num_simple_conflicts);
|
| + snapshot.num_simple_conflicts());
|
| sync_completed_event_info->set_num_server_conflicts(
|
| - snapshot->num_server_conflicts);
|
| + snapshot.num_server_conflicts());
|
|
|
| sync_completed_event_info->set_num_updates_downloaded(
|
| - snapshot->syncer_status.num_updates_downloaded_total);
|
| + snapshot.syncer_status().num_updates_downloaded_total);
|
| sync_completed_event_info->set_num_reflected_updates_downloaded(
|
| - snapshot->syncer_status.num_reflected_updates_downloaded_total);
|
| + snapshot.syncer_status().num_reflected_updates_downloaded_total);
|
| sync_completed_event_info->mutable_caller_info()->set_source(
|
| - snapshot->source.updates_source);
|
| + snapshot.source().updates_source);
|
| sync_completed_event_info->mutable_caller_info()->set_notifications_enabled(
|
| - snapshot->notifications_enabled);
|
| + snapshot.notifications_enabled());
|
|
|
| AddEventToQueue(event_info);
|
| }
|
|
|