OLD | NEW |
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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 base::DictionaryValue* value = new base::DictionaryValue(); | 560 base::DictionaryValue* value = new base::DictionaryValue(); |
561 SET_STR(id); | 561 SET_STR(id); |
562 SET_STR(name); | 562 SET_STR(name); |
563 SET_BOOL(acknowledged); | 563 SET_BOOL(acknowledged); |
564 SET_STR(master_key); | 564 SET_STR(master_key); |
565 SET_STR(chrome_avatar); | 565 SET_STR(chrome_avatar); |
566 SET_STR(chromeos_avatar); | 566 SET_STR(chromeos_avatar); |
567 return value; | 567 return value; |
568 } | 568 } |
569 | 569 |
| 570 base::DictionaryValue* ManagedUserSharedSettingSpecificsToValue( |
| 571 const sync_pb::ManagedUserSharedSettingSpecifics& proto) { |
| 572 base::DictionaryValue* value = new base::DictionaryValue(); |
| 573 SET_STR(mu_id); |
| 574 SET_STR(key); |
| 575 SET_STR(value); |
| 576 SET_BOOL(acknowledged); |
| 577 return value; |
| 578 } |
| 579 |
570 base::DictionaryValue* NigoriSpecificsToValue( | 580 base::DictionaryValue* NigoriSpecificsToValue( |
571 const sync_pb::NigoriSpecifics& proto) { | 581 const sync_pb::NigoriSpecifics& proto) { |
572 base::DictionaryValue* value = new base::DictionaryValue(); | 582 base::DictionaryValue* value = new base::DictionaryValue(); |
573 SET(encryption_keybag, EncryptedDataToValue); | 583 SET(encryption_keybag, EncryptedDataToValue); |
574 SET_BOOL(keybag_is_frozen); | 584 SET_BOOL(keybag_is_frozen); |
575 SET_BOOL(encrypt_bookmarks); | 585 SET_BOOL(encrypt_bookmarks); |
576 SET_BOOL(encrypt_preferences); | 586 SET_BOOL(encrypt_preferences); |
577 SET_BOOL(encrypt_autofill_profile); | 587 SET_BOOL(encrypt_autofill_profile); |
578 SET_BOOL(encrypt_autofill); | 588 SET_BOOL(encrypt_autofill); |
579 SET_BOOL(encrypt_themes); | 589 SET_BOOL(encrypt_themes); |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 SET_FIELD(bookmark, BookmarkSpecificsToValue); | 728 SET_FIELD(bookmark, BookmarkSpecificsToValue); |
719 SET_FIELD(device_info, DeviceInfoSpecificsToValue); | 729 SET_FIELD(device_info, DeviceInfoSpecificsToValue); |
720 SET_FIELD(dictionary, DictionarySpecificsToValue); | 730 SET_FIELD(dictionary, DictionarySpecificsToValue); |
721 SET_FIELD(experiments, ExperimentsSpecificsToValue); | 731 SET_FIELD(experiments, ExperimentsSpecificsToValue); |
722 SET_FIELD(extension, ExtensionSpecificsToValue); | 732 SET_FIELD(extension, ExtensionSpecificsToValue); |
723 SET_FIELD(extension_setting, ExtensionSettingSpecificsToValue); | 733 SET_FIELD(extension_setting, ExtensionSettingSpecificsToValue); |
724 SET_FIELD(favicon_image, FaviconImageSpecificsToValue); | 734 SET_FIELD(favicon_image, FaviconImageSpecificsToValue); |
725 SET_FIELD(favicon_tracking, FaviconTrackingSpecificsToValue); | 735 SET_FIELD(favicon_tracking, FaviconTrackingSpecificsToValue); |
726 SET_FIELD(history_delete_directive, HistoryDeleteDirectiveSpecificsToValue); | 736 SET_FIELD(history_delete_directive, HistoryDeleteDirectiveSpecificsToValue); |
727 SET_FIELD(managed_user_setting, ManagedUserSettingSpecificsToValue); | 737 SET_FIELD(managed_user_setting, ManagedUserSettingSpecificsToValue); |
| 738 SET_FIELD(managed_user_shared_setting, |
| 739 ManagedUserSharedSettingSpecificsToValue); |
728 SET_FIELD(managed_user, ManagedUserSpecificsToValue); | 740 SET_FIELD(managed_user, ManagedUserSpecificsToValue); |
729 SET_FIELD(nigori, NigoriSpecificsToValue); | 741 SET_FIELD(nigori, NigoriSpecificsToValue); |
730 SET_FIELD(password, PasswordSpecificsToValue); | 742 SET_FIELD(password, PasswordSpecificsToValue); |
731 SET_FIELD(preference, PreferenceSpecificsToValue); | 743 SET_FIELD(preference, PreferenceSpecificsToValue); |
732 SET_FIELD(priority_preference, PriorityPreferenceSpecificsToValue); | 744 SET_FIELD(priority_preference, PriorityPreferenceSpecificsToValue); |
733 SET_FIELD(search_engine, SearchEngineSpecificsToValue); | 745 SET_FIELD(search_engine, SearchEngineSpecificsToValue); |
734 SET_FIELD(session, SessionSpecificsToValue); | 746 SET_FIELD(session, SessionSpecificsToValue); |
735 SET_FIELD(synced_notification, SyncedNotificationSpecificsToValue); | 747 SET_FIELD(synced_notification, SyncedNotificationSpecificsToValue); |
736 SET_FIELD(theme, ThemeSpecificsToValue); | 748 SET_FIELD(theme, ThemeSpecificsToValue); |
737 SET_FIELD(typed_url, TypedUrlSpecificsToValue); | 749 SET_FIELD(typed_url, TypedUrlSpecificsToValue); |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 #undef SET_BYTES | 1031 #undef SET_BYTES |
1020 #undef SET_INT32 | 1032 #undef SET_INT32 |
1021 #undef SET_INT64 | 1033 #undef SET_INT64 |
1022 #undef SET_INT64_REP | 1034 #undef SET_INT64_REP |
1023 #undef SET_STR | 1035 #undef SET_STR |
1024 #undef SET_STR_REP | 1036 #undef SET_STR_REP |
1025 | 1037 |
1026 #undef SET_FIELD | 1038 #undef SET_FIELD |
1027 | 1039 |
1028 } // namespace syncer | 1040 } // namespace syncer |
OLD | NEW |