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

Unified Diff: components/sync/engine_impl/loopback_server/loopback_server_entity.cc

Issue 2969643002: Reland - Replace FakeServer's implementation with LoopbackServer invocations. (Closed)
Patch Set: Rebased on master. Created 3 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
Index: components/sync/engine_impl/loopback_server/loopback_server_entity.cc
diff --git a/components/sync/engine_impl/loopback_server/loopback_server_entity.cc b/components/sync/engine_impl/loopback_server/loopback_server_entity.cc
index c6e20fe12abd2d7ec8c501d2d36327f3cfb27ec1..946fd9402757da30f121249de16d26b36b446362 100644
--- a/components/sync/engine_impl/loopback_server/loopback_server_entity.cc
+++ b/components/sync/engine_impl/loopback_server/loopback_server_entity.cc
@@ -46,7 +46,7 @@ LoopbackServerEntity::CreateEntityFromProto(
const sync_pb::LoopbackServerEntity& entity) {
switch (entity.type()) {
case sync_pb::LoopbackServerEntity_Type_TOMBSTONE:
- return PersistentTombstoneEntity::Create(entity.entity());
+ return PersistentTombstoneEntity::CreateFromEntity(entity.entity());
case sync_pb::LoopbackServerEntity_Type_PERMANENT:
return base::MakeUnique<PersistentPermanentEntity>(
entity.entity().id_string(), entity.entity().version(),
@@ -57,7 +57,7 @@ LoopbackServerEntity::CreateEntityFromProto(
case sync_pb::LoopbackServerEntity_Type_BOOKMARK:
return PersistentBookmarkEntity::CreateFromEntity(entity.entity());
case sync_pb::LoopbackServerEntity_Type_UNIQUE:
- return PersistentUniqueClientEntity::Create(entity.entity());
+ return PersistentUniqueClientEntity::CreateFromEntity(entity.entity());
case sync_pb::LoopbackServerEntity_Type_UNKNOWN:
CHECK(false) << "Unknown type encountered";
return std::unique_ptr<LoopbackServerEntity>(nullptr);

Powered by Google App Engine
This is Rietveld 408576698