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

Unified Diff: components/sync/model/entity_change.h

Issue 2915763005: [Sync] Implement support for updating storage key for new entities (Closed)
Patch Set: Created 3 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
Index: components/sync/model/entity_change.h
diff --git a/components/sync/model/entity_change.h b/components/sync/model/entity_change.h
index 408f370d54196da122bbf7feb691ded0c8e1d48c..12b6b5c0a0945e82038a6ec99c8165f9b680ae32 100644
--- a/components/sync/model/entity_change.h
+++ b/components/sync/model/entity_change.h
@@ -28,6 +28,9 @@ class EntityChange {
std::string storage_key() const { return storage_key_; }
ChangeType type() const { return type_; }
const EntityData& data() const { return data_.value(); }
+ // TODO(pavely): data_ptr() is added temporarily to support converting
skym 2017/05/31 19:53:11 Can we get a tracking bug for removing this?
pavely 2017/06/02 18:23:45 Done.
+ // ModelTypeSyncBridge::MergeSyncData from map to change list.
+ const EntityDataPtr& data_ptr() const { return data_; }
private:
EntityChange(const std::string& storage_key,

Powered by Google App Engine
This is Rietveld 408576698