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 #include "sync/internal_api/public/base/model_type.h" | 5 #include "sync/internal_api/public/base/model_type.h" |
6 | 6 |
7 #include "base/strings/string_split.h" | 7 #include "base/strings/string_split.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "sync/protocol/app_notification_specifics.pb.h" | 9 #include "sync/protocol/app_notification_specifics.pb.h" |
10 #include "sync/protocol/app_setting_specifics.pb.h" | 10 #include "sync/protocol/app_setting_specifics.pb.h" |
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 return "google_chrome_app_settings"; | 773 return "google_chrome_app_settings"; |
774 case EXTENSION_SETTINGS: | 774 case EXTENSION_SETTINGS: |
775 return "google_chrome_extension_settings"; | 775 return "google_chrome_extension_settings"; |
776 case APP_NOTIFICATIONS: | 776 case APP_NOTIFICATIONS: |
777 return "google_chrome_app_notifications"; | 777 return "google_chrome_app_notifications"; |
778 case HISTORY_DELETE_DIRECTIVES: | 778 case HISTORY_DELETE_DIRECTIVES: |
779 return "google_chrome_history_delete_directives"; | 779 return "google_chrome_history_delete_directives"; |
780 case SYNCED_NOTIFICATIONS: | 780 case SYNCED_NOTIFICATIONS: |
781 return "google_chrome_synced_notifications"; | 781 return "google_chrome_synced_notifications"; |
782 case SYNCED_NOTIFICATION_APP_INFO: | 782 case SYNCED_NOTIFICATION_APP_INFO: |
783 return "google_chrome_synced_notification_app_info"; | 783 return "google_chrome_app_info"; |
784 case DEVICE_INFO: | 784 case DEVICE_INFO: |
785 return "google_chrome_device_info"; | 785 return "google_chrome_device_info"; |
786 case EXPERIMENTS: | 786 case EXPERIMENTS: |
787 return "google_chrome_experiments"; | 787 return "google_chrome_experiments"; |
788 case PRIORITY_PREFERENCES: | 788 case PRIORITY_PREFERENCES: |
789 return "google_chrome_priority_preferences"; | 789 return "google_chrome_priority_preferences"; |
790 case DICTIONARY: | 790 case DICTIONARY: |
791 return "google_chrome_dictionary"; | 791 return "google_chrome_dictionary"; |
792 case FAVICON_IMAGES: | 792 case FAVICON_IMAGES: |
793 return "google_chrome_favicon_images"; | 793 return "google_chrome_favicon_images"; |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 | 1040 |
1041 bool IsRealDataType(ModelType model_type) { | 1041 bool IsRealDataType(ModelType model_type) { |
1042 return model_type >= FIRST_REAL_MODEL_TYPE && model_type < MODEL_TYPE_COUNT; | 1042 return model_type >= FIRST_REAL_MODEL_TYPE && model_type < MODEL_TYPE_COUNT; |
1043 } | 1043 } |
1044 | 1044 |
1045 bool IsActOnceDataType(ModelType model_type) { | 1045 bool IsActOnceDataType(ModelType model_type) { |
1046 return model_type == HISTORY_DELETE_DIRECTIVES; | 1046 return model_type == HISTORY_DELETE_DIRECTIVES; |
1047 } | 1047 } |
1048 | 1048 |
1049 } // namespace syncer | 1049 } // namespace syncer |
OLD | NEW |