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

Unified Diff: sync/engine/syncer_command.cc

Issue 10197004: [Sync] Convert SyncSessionSnapshot to a copy-able class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 8 years, 8 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 | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/engine/syncer_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/engine/syncer_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698