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

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

Issue 414953002: Make client tag IDs consistent in sync fake server (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment Created 6 years, 5 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 | « no previous file | sync/test/fake_server/fake_server_entity.cc » ('j') | 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 b73ef1ae7030c151dcb89a424a2a72d9f12e1a26..854eabec6c5b8207afac3d95b00df2c23af78219 100644
--- a/sync/test/fake_server/fake_server.cc
+++ b/sync/test/fake_server/fake_server.cc
@@ -336,13 +336,7 @@ string FakeServer::CommitEntity(
client_entity,
entities_[client_entity.id_string()]);
} else if (client_entity.has_client_defined_unique_tag()) {
- if (entities_.find(client_entity.id_string()) != entities_.end()) {
- entity = UniqueClientEntity::CreateUpdatedVersion(
- client_entity,
- entities_[client_entity.id_string()]);
- } else {
- entity = UniqueClientEntity::CreateNew(client_entity);
- }
+ entity = UniqueClientEntity::Create(client_entity);
} else {
// TODO(pvalenzuela): Validate entity's parent ID.
if (entities_.find(client_entity.id_string()) != entities_.end()) {
« no previous file with comments | « no previous file | sync/test/fake_server/fake_server_entity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698