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

Unified Diff: components/sync/engine_impl/loopback_server/persistent_unique_client_entity.h

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/persistent_unique_client_entity.h
diff --git a/components/sync/engine_impl/loopback_server/persistent_unique_client_entity.h b/components/sync/engine_impl/loopback_server/persistent_unique_client_entity.h
index 8e039002b68d3ab50c04d023bf207753105c5394..746f0bd2307550f9741e4d4d2653194082bb1539 100644
--- a/components/sync/engine_impl/loopback_server/persistent_unique_client_entity.h
+++ b/components/sync/engine_impl/loopback_server/persistent_unique_client_entity.h
@@ -39,12 +39,14 @@ class PersistentUniqueClientEntity : public LoopbackServerEntity {
~PersistentUniqueClientEntity() override;
// Factory function for creating a PersistentUniqueClientEntity.
- static std::unique_ptr<LoopbackServerEntity> Create(
+ static std::unique_ptr<LoopbackServerEntity> CreateFromEntity(
const sync_pb::SyncEntity& client_entity);
- // Derives an ID from a unique client tagged entity.
- static std::string EffectiveIdForClientTaggedEntity(
- const sync_pb::SyncEntity& entity);
+ // Factory function for creating a PersistentUniqueClientEntity for use in the
+ // FakeServer injection API.
+ static std::unique_ptr<LoopbackServerEntity> CreateFromEntitySpecifics(
+ const std::string& name,
+ const sync_pb::EntitySpecifics& entity_specifics);
// LoopbackServerEntity implementation.
bool RequiresParentId() const override;

Powered by Google App Engine
This is Rietveld 408576698