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

Unified Diff: sync/internal_api/write_node.cc

Issue 10825137: FYI: Control Data + Per-Device Metadata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add PER_USER_METADATA, refactor some encryption code Created 8 years, 4 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: sync/internal_api/write_node.cc
diff --git a/sync/internal_api/write_node.cc b/sync/internal_api/write_node.cc
index 22d7e5f248b7d613813ffb51b6bd67837fad5c1b..732a75fbab68eb790e9af0eabbb52e663ce1566c 100644
--- a/sync/internal_api/write_node.cc
+++ b/sync/internal_api/write_node.cc
@@ -190,6 +190,20 @@ void WriteNode::SetSessionSpecifics(
SetEntitySpecifics(entity_specifics);
}
+void WriteNode::SetPerDeviceSpecifics(
+ const sync_pb::PerDeviceSpecifics& new_value) {
+ sync_pb::EntitySpecifics entity_specifics;
+ entity_specifics.mutable_per_device_metadata()->CopyFrom(new_value);
+ SetEntitySpecifics(entity_specifics);
+}
+
+void WriteNode::SetPerUserSpecifics(
+ const sync_pb::PerUserSpecifics& new_value) {
+ sync_pb::EntitySpecifics entity_specifics;
+ entity_specifics.mutable_per_user_metadata()->CopyFrom(new_value);
+ SetEntitySpecifics(entity_specifics);
+}
+
void WriteNode::SetEntitySpecifics(
const sync_pb::EntitySpecifics& new_value) {
ModelType new_specifics_type =

Powered by Google App Engine
This is Rietveld 408576698