summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/write_node.cc
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-17 12:46:01 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-17 12:46:01 +0000
commitb40e52d752e1bffd81a40cb6a547d849546340ec (patch)
tree1f60a6a808bc4d283fc8e7d089ee4d24b13032b0 /sync/internal_api/write_node.cc
parentbe97da1bebcbbc5a53cad0092b4fb104da2af91e (diff)
downloadchromium_src-b40e52d752e1bffd81a40cb6a547d849546340ec.zip
chromium_src-b40e52d752e1bffd81a40cb6a547d849546340ec.tar.gz
chromium_src-b40e52d752e1bffd81a40cb6a547d849546340ec.tar.bz2
Add ManagedUserSettings Sync data type.
This data type should not be visible in the UI, as it will be configured automatically for managed users. TBR=atwilson@chromium.org BUG=229383 Review URL: https://codereview.chromium.org/14053004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194582 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/write_node.cc')
-rw-r--r--sync/internal_api/write_node.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sync/internal_api/write_node.cc b/sync/internal_api/write_node.cc
index 3a96764..db461d6 100644
--- a/sync/internal_api/write_node.cc
+++ b/sync/internal_api/write_node.cc
@@ -186,6 +186,13 @@ void WriteNode::SetSessionSpecifics(
SetEntitySpecifics(entity_specifics);
}
+void WriteNode::SetManagedUserSettingSpecifics(
+ const sync_pb::ManagedUserSettingSpecifics& new_value) {
+ sync_pb::EntitySpecifics entity_specifics;
+ entity_specifics.mutable_managed_user_setting()->CopyFrom(new_value);
+ SetEntitySpecifics(entity_specifics);
+}
+
void WriteNode::SetDeviceInfoSpecifics(
const sync_pb::DeviceInfoSpecifics& new_value) {
sync_pb::EntitySpecifics entity_specifics;