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

Unified Diff: sync/engine/process_commit_response_command.cc

Issue 10916174: Implement a bag of chips for sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Follow review 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/process_commit_response_command.cc
diff --git a/sync/engine/process_commit_response_command.cc b/sync/engine/process_commit_response_command.cc
index 8a00608f925bd143a18a35006565e753447bc870..0062ed4004c030ea5666a56f5f6fda4ca6389f24 100644
--- a/sync/engine/process_commit_response_command.cc
+++ b/sync/engine/process_commit_response_command.cc
@@ -62,6 +62,17 @@ ProcessCommitResponseCommand::ProcessCommitResponseCommand(
ProcessCommitResponseCommand::~ProcessCommitResponseCommand() {}
+SyncerError ProcessCommitResponseCommand::ExecuteImpl(SyncSession* session) {
tim (not reviewing) 2012/09/10 17:52:55 mm, I understand how you got here, but lets not ov
+ syncable::Directory* dir = session->context()->directory();
+ const sync_pb::ClientToServerResponse& response =
+ session->status_controller().updates_response();
+
+ // Persist a bag of chips if it has been sent by the server.
+ SyncerProtoUtil::PersistBagOfChips(dir, response);
+
+ return ModelChangingSyncerCommand::ExecuteImpl(session);
+}
+
std::set<ModelSafeGroup> ProcessCommitResponseCommand::GetGroupsToChange(
const sessions::SyncSession& session) const {
std::set<ModelSafeGroup> groups_with_commits;
« no previous file with comments | « sync/engine/process_commit_response_command.h ('k') | sync/engine/process_commit_response_command_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698