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

Unified Diff: sync/internal_api/base_node.cc

Issue 76333002: Add Sync datatype for shared managed user settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 1 month 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/base_node.cc
diff --git a/sync/internal_api/base_node.cc b/sync/internal_api/base_node.cc
index 3f8f2f0aed23243df97d5e55b18c9e0b42aa29e7..e610534f93336c7ddfd5ea57dc6e22bfa0c97d2e 100644
--- a/sync/internal_api/base_node.cc
+++ b/sync/internal_api/base_node.cc
@@ -324,6 +324,12 @@ const sync_pb::ManagedUserSpecifics& BaseNode::GetManagedUserSpecifics() const {
return GetEntitySpecifics().managed_user();
}
+const sync_pb::ManagedUserSharedSettingSpecifics&
+ BaseNode::GetManagedUserSharedSettingSpecifics() const {
+ DCHECK_EQ(GetModelType(), MANAGED_USER_SHARED_SETTINGS);
+ return GetEntitySpecifics().managed_user_shared_setting();
+}
+
const sync_pb::DeviceInfoSpecifics& BaseNode::GetDeviceInfoSpecifics() const {
DCHECK_EQ(GetModelType(), DEVICE_INFO);
return GetEntitySpecifics().device_info();

Powered by Google App Engine
This is Rietveld 408576698