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

Unified Diff: sync/internal_api/write_node.cc

Issue 10985008: sync: Add DeviceInfo protobuf and supporting code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another missing include Created 8 years, 2 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 | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/protocol/device_info_specifics.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/write_node.cc
diff --git a/sync/internal_api/write_node.cc b/sync/internal_api/write_node.cc
index c9d4755f1cfa6a3f2eb8e564a6c406f2050ceee3..fad906c8efdc5d587b95712368c0c116f2879c11 100644
--- a/sync/internal_api/write_node.cc
+++ b/sync/internal_api/write_node.cc
@@ -189,6 +189,13 @@ void WriteNode::SetSessionSpecifics(
SetEntitySpecifics(entity_specifics);
}
+void WriteNode::SetDeviceInfoSpecifics(
+ const sync_pb::DeviceInfoSpecifics& new_value) {
+ sync_pb::EntitySpecifics entity_specifics;
+ entity_specifics.mutable_device_info()->CopyFrom(new_value);
+ SetEntitySpecifics(entity_specifics);
+}
+
void WriteNode::SetEntitySpecifics(
const sync_pb::EntitySpecifics& new_value) {
ModelType new_specifics_type =
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/protocol/device_info_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698