diff options
author | bauerb <bauerb@chromium.org> | 2014-12-16 03:23:45 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-16 11:24:06 +0000 |
commit | 8a4355ef1a592e6eba484c354e6805fe8e097494 (patch) | |
tree | 3b3247f36ce01b497aff98b0e0f2ae394c542742 /sync/protocol/proto_value_conversions.cc | |
parent | 5a1036378757f8a44c4ee920baff6d6f34a18314 (diff) | |
download | chromium_src-8a4355ef1a592e6eba484c354e6805fe8e097494.zip chromium_src-8a4355ef1a592e6eba484c354e6805fe8e097494.tar.gz chromium_src-8a4355ef1a592e6eba484c354e6805fe8e097494.tar.bz2 |
Add a datatype for supervised user whitelists.
BUG=436459
Review URL: https://codereview.chromium.org/754963004
Cr-Commit-Position: refs/heads/master@{#308569}
Diffstat (limited to 'sync/protocol/proto_value_conversions.cc')
-rw-r--r-- | sync/protocol/proto_value_conversions.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sync/protocol/proto_value_conversions.cc b/sync/protocol/proto_value_conversions.cc index 91a11e3..a9802c4 100644 --- a/sync/protocol/proto_value_conversions.cc +++ b/sync/protocol/proto_value_conversions.cc @@ -515,6 +515,14 @@ base::DictionaryValue* ManagedUserSharedSettingSpecificsToValue( return value; } +base::DictionaryValue* ManagedUserWhitelistSpecificsToValue( + const sync_pb::ManagedUserWhitelistSpecifics& proto) { + base::DictionaryValue* value = new base::DictionaryValue(); + SET_STR(id); + SET_STR(name); + return value; +} + base::DictionaryValue* NigoriSpecificsToValue( const sync_pb::NigoriSpecifics& proto) { base::DictionaryValue* value = new base::DictionaryValue(); @@ -687,6 +695,7 @@ base::DictionaryValue* EntitySpecificsToValue( SET_FIELD(managed_user_shared_setting, ManagedUserSharedSettingSpecificsToValue); SET_FIELD(managed_user, ManagedUserSpecificsToValue); + SET_FIELD(managed_user_whitelist, ManagedUserWhitelistSpecificsToValue); SET_FIELD(nigori, NigoriSpecificsToValue); SET_FIELD(password, PasswordSpecificsToValue); SET_FIELD(preference, PreferenceSpecificsToValue); |