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

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

Issue 2915763005: [Sync] Implement support for updating storage key for new entities (Closed)
Patch Set: Rebase. Fix recommit for encryption scenario. Created 3 years, 6 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 | components/sync/model/fake_model_type_change_processor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..65349fb6bcac27387a7b1e2246b3e1873b5325c4 100644
--- a/components/sync/model/entity_change.h
+++ b/components/sync/model/entity_change.h
@@ -28,6 +28,10 @@ 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
+ // ModelTypeSyncBridge::MergeSyncData from map to change list. Should be
+ // removed as part of crbug.com/719570.
+ const EntityDataPtr& data_ptr() const { return data_; }
private:
EntityChange(const std::string& storage_key,
« no previous file with comments | « no previous file | components/sync/model/fake_model_type_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698