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

Unified Diff: sync/test/fake_server/fake_server.cc

Issue 296743005: sync: Implement fake server reflection blocking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split enable and disable methods Created 6 years, 7 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/test/fake_server/fake_server.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/fake_server/fake_server.cc
diff --git a/sync/test/fake_server/fake_server.cc b/sync/test/fake_server/fake_server.cc
index 44bce5437e9a3c6cf05c9a24e034e43460829fdb..207f1a2700115ac0a726f33bb5440e9e58641cdb 100644
--- a/sync/test/fake_server/fake_server.cc
+++ b/sync/test/fake_server/fake_server.cc
@@ -227,6 +227,7 @@ void FakeServer::HandleCommand(const string& request,
break;
case sync_pb::ClientToServerMessage::COMMIT:
success = HandleCommitRequest(message.commit(),
+ message.invalidator_client_id(),
response_proto.mutable_commit());
break;
default:
@@ -396,6 +397,7 @@ bool FakeServer::DeleteChildren(const string& id) {
bool FakeServer::HandleCommitRequest(
const sync_pb::CommitMessage& commit,
+ const std::string& invalidator_client_id,
sync_pb::CommitResponse* response) {
std::map<string, string> client_to_server_ids;
string guid = commit.cache_guid();
@@ -430,7 +432,8 @@ bool FakeServer::HandleCommitRequest(
committed_model_types.Put(entity->GetModelType());
}
- FOR_EACH_OBSERVER(Observer, observers_, OnCommit(committed_model_types));
+ FOR_EACH_OBSERVER(Observer, observers_,
+ OnCommit(invalidator_client_id, committed_model_types));
return true;
}
« no previous file with comments | « sync/test/fake_server/fake_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698