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

Side by Side Diff: sync/protocol/proto_value_conversions.cc

Issue 754963004: Add a datatype for supervised user whitelists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: review Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Keep this file in sync with the .proto files in this directory. 5 // Keep this file in sync with the .proto files in this directory.
6 6
7 #include "sync/protocol/proto_value_conversions.h" 7 #include "sync/protocol/proto_value_conversions.h"
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 base::DictionaryValue* ManagedUserSharedSettingSpecificsToValue( 508 base::DictionaryValue* ManagedUserSharedSettingSpecificsToValue(
509 const sync_pb::ManagedUserSharedSettingSpecifics& proto) { 509 const sync_pb::ManagedUserSharedSettingSpecifics& proto) {
510 base::DictionaryValue* value = new base::DictionaryValue(); 510 base::DictionaryValue* value = new base::DictionaryValue();
511 SET_STR(mu_id); 511 SET_STR(mu_id);
512 SET_STR(key); 512 SET_STR(key);
513 SET_STR(value); 513 SET_STR(value);
514 SET_BOOL(acknowledged); 514 SET_BOOL(acknowledged);
515 return value; 515 return value;
516 } 516 }
517 517
518 base::DictionaryValue* ManagedUserWhitelistSpecificsToValue(
519 const sync_pb::ManagedUserWhitelistSpecifics& proto) {
520 base::DictionaryValue* value = new base::DictionaryValue();
521 SET_STR(id);
522 SET_STR(name);
523 return value;
524 }
525
518 base::DictionaryValue* NigoriSpecificsToValue( 526 base::DictionaryValue* NigoriSpecificsToValue(
519 const sync_pb::NigoriSpecifics& proto) { 527 const sync_pb::NigoriSpecifics& proto) {
520 base::DictionaryValue* value = new base::DictionaryValue(); 528 base::DictionaryValue* value = new base::DictionaryValue();
521 SET(encryption_keybag, EncryptedDataToValue); 529 SET(encryption_keybag, EncryptedDataToValue);
522 SET_BOOL(keybag_is_frozen); 530 SET_BOOL(keybag_is_frozen);
523 SET_BOOL(encrypt_bookmarks); 531 SET_BOOL(encrypt_bookmarks);
524 SET_BOOL(encrypt_preferences); 532 SET_BOOL(encrypt_preferences);
525 SET_BOOL(encrypt_autofill_profile); 533 SET_BOOL(encrypt_autofill_profile);
526 SET_BOOL(encrypt_autofill); 534 SET_BOOL(encrypt_autofill);
527 SET_BOOL(encrypt_themes); 535 SET_BOOL(encrypt_themes);
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 SET_FIELD(experiments, ExperimentsSpecificsToValue); 688 SET_FIELD(experiments, ExperimentsSpecificsToValue);
681 SET_FIELD(extension, ExtensionSpecificsToValue); 689 SET_FIELD(extension, ExtensionSpecificsToValue);
682 SET_FIELD(extension_setting, ExtensionSettingSpecificsToValue); 690 SET_FIELD(extension_setting, ExtensionSettingSpecificsToValue);
683 SET_FIELD(favicon_image, FaviconImageSpecificsToValue); 691 SET_FIELD(favicon_image, FaviconImageSpecificsToValue);
684 SET_FIELD(favicon_tracking, FaviconTrackingSpecificsToValue); 692 SET_FIELD(favicon_tracking, FaviconTrackingSpecificsToValue);
685 SET_FIELD(history_delete_directive, HistoryDeleteDirectiveSpecificsToValue); 693 SET_FIELD(history_delete_directive, HistoryDeleteDirectiveSpecificsToValue);
686 SET_FIELD(managed_user_setting, ManagedUserSettingSpecificsToValue); 694 SET_FIELD(managed_user_setting, ManagedUserSettingSpecificsToValue);
687 SET_FIELD(managed_user_shared_setting, 695 SET_FIELD(managed_user_shared_setting,
688 ManagedUserSharedSettingSpecificsToValue); 696 ManagedUserSharedSettingSpecificsToValue);
689 SET_FIELD(managed_user, ManagedUserSpecificsToValue); 697 SET_FIELD(managed_user, ManagedUserSpecificsToValue);
698 SET_FIELD(managed_user_whitelist, ManagedUserWhitelistSpecificsToValue);
690 SET_FIELD(nigori, NigoriSpecificsToValue); 699 SET_FIELD(nigori, NigoriSpecificsToValue);
691 SET_FIELD(password, PasswordSpecificsToValue); 700 SET_FIELD(password, PasswordSpecificsToValue);
692 SET_FIELD(preference, PreferenceSpecificsToValue); 701 SET_FIELD(preference, PreferenceSpecificsToValue);
693 SET_FIELD(priority_preference, PriorityPreferenceSpecificsToValue); 702 SET_FIELD(priority_preference, PriorityPreferenceSpecificsToValue);
694 SET_FIELD(search_engine, SearchEngineSpecificsToValue); 703 SET_FIELD(search_engine, SearchEngineSpecificsToValue);
695 SET_FIELD(session, SessionSpecificsToValue); 704 SET_FIELD(session, SessionSpecificsToValue);
696 SET_FIELD(synced_notification, SyncedNotificationSpecificsToValue); 705 SET_FIELD(synced_notification, SyncedNotificationSpecificsToValue);
697 SET_FIELD(synced_notification_app_info, 706 SET_FIELD(synced_notification_app_info,
698 SyncedNotificationAppInfoSpecificsToValue); 707 SyncedNotificationAppInfoSpecificsToValue);
699 SET_FIELD(theme, ThemeSpecificsToValue); 708 SET_FIELD(theme, ThemeSpecificsToValue);
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 #undef SET_BYTES 1015 #undef SET_BYTES
1007 #undef SET_INT32 1016 #undef SET_INT32
1008 #undef SET_INT64 1017 #undef SET_INT64
1009 #undef SET_INT64_REP 1018 #undef SET_INT64_REP
1010 #undef SET_STR 1019 #undef SET_STR
1011 #undef SET_STR_REP 1020 #undef SET_STR_REP
1012 1021
1013 #undef SET_FIELD 1022 #undef SET_FIELD
1014 1023
1015 } // namespace syncer 1024 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/protocol/proto_value_conversions.h ('k') | sync/protocol/proto_value_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698