Index: sync/engine/syncer_command.cc |
diff --git a/sync/engine/syncer_command.cc b/sync/engine/syncer_command.cc |
index e2e51389c753d1d0304e766f800159c95f6bbb08..60e8debd4a714e19fd59b99a14dc64715f9d991e 100644 |
--- a/sync/engine/syncer_command.cc |
+++ b/sync/engine/syncer_command.cc |
@@ -22,8 +22,7 @@ SyncerError SyncerCommand::Execute(SyncSession* session) { |
void SyncerCommand::SendNotifications(SyncSession* session) { |
if (session->mutable_status_controller()->TestAndClearIsDirty()) { |
SyncEngineEvent event(SyncEngineEvent::STATUS_CHANGED); |
- const sessions::SyncSessionSnapshot& snapshot(session->TakeSnapshot()); |
- event.snapshot = &snapshot; |
+ event.snapshot = session->TakeSnapshot(); |
session->context()->NotifyListeners(event); |
} |
} |