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

Unified Diff: sync/engine/model_changing_syncer_command.cc

Issue 10916174: Implement a bag of chips for sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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: sync/engine/model_changing_syncer_command.cc
diff --git a/sync/engine/model_changing_syncer_command.cc b/sync/engine/model_changing_syncer_command.cc
index 3fe6b2dc3a9f617579a17a9adf3525218301950c..919d344507e904189fe484750f4837da97778f5a 100644
--- a/sync/engine/model_changing_syncer_command.cc
+++ b/sync/engine/model_changing_syncer_command.cc
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
+#include "sync/engine/syncer_proto_util.h"
#include "sync/sessions/status_controller.h"
#include "sync/sessions/sync_session.h"
@@ -45,6 +46,12 @@ SyncerError ModelChangingSyncerCommand::ExecuteImpl(
result = this_worker_result;
}
+ if (result == SYNCER_OK) {
+ // In case of success, persist an eventul bag of chips.
+ SyncerProtoUtil::PersistBagOfChips(session->context()->directory(),
Nicolas Zea 2012/09/07 18:38:43 we actually want to be able to persist the bag of
qsr 2012/09/10 08:12:37 And I was missing one of the 2. Thanks. On the o
+ session->status_controller().updates_response());
+ }
+
return result;
}

Powered by Google App Engine
This is Rietveld 408576698