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

Unified Diff: sync/api/entity_change.h

Issue 1565503003: Use MetadataChangeList and EntityChangeList in SharedModelTypeProcessor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/api/metadata_change_list.h » ('j') | sync/api/metadata_change_list.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/entity_change.h
diff --git a/sync/api/entity_change.h b/sync/api/entity_change.h
index 88e3812353ed2f487a9ddf67e28988330c98f199..866d38ca2059c798d76cd2abb31b69ca52e97ad1 100644
--- a/sync/api/entity_change.h
+++ b/sync/api/entity_change.h
@@ -34,9 +34,9 @@ class SYNC_EXPORT EntityChange {
private:
EntityChange(std::string client_key, ChangeType type, EntityDataPtr data);
- const std::string client_key_;
- const ChangeType type_;
- const EntityDataPtr data_;
+ std::string client_key_;
skym 2016/01/07 00:40:48 I don't quite follow why these need to be mutable
stanisc 2016/01/11 19:56:47 The compiler complains that copy constructor is de
skym 2016/01/11 20:45:40 That makes me so sad. It should be completely poss
stanisc 2016/01/12 19:32:11 I think these fields have to be assignable because
skym 2016/01/12 19:38:54 You're right, in order for EntityChange to be assi
+ ChangeType type_;
+ EntityDataPtr data_;
};
typedef std::vector<EntityChange> EntityChangeList;
« no previous file with comments | « no previous file | sync/api/metadata_change_list.h » ('j') | sync/api/metadata_change_list.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698