| Index: components/sync/syncable/model_type.cc
|
| diff --git a/components/sync/syncable/model_type.cc b/components/sync/syncable/model_type.cc
|
| index e1f4d49d127d3afc456ce0b151094b3d16c65c8c..464da6a9a925fbed75ffa90d96af5d0fed07d2c6 100644
|
| --- a/components/sync/syncable/model_type.cc
|
| +++ b/components/sync/syncable/model_type.cc
|
| @@ -425,29 +425,6 @@ ModelType GetModelTypeFromSpecifics(const sync_pb::EntitySpecifics& specifics) {
|
| return UNSPECIFIED;
|
| }
|
|
|
| -ModelTypeSet ProtocolTypes() {
|
| - return Difference(ModelTypeSet::All(), ProxyTypes());
|
| -}
|
| -
|
| -ModelTypeSet UserTypes() {
|
| - // TODO(sync): We should be able to build the actual enumset's internal
|
| - // bitset value here at compile time, instead of makes a new one each time.
|
| - return ModelTypeSet::FromRange(FIRST_USER_MODEL_TYPE, LAST_USER_MODEL_TYPE);
|
| -}
|
| -
|
| -ModelTypeSet UserSelectableTypes() {
|
| - return ModelTypeSet(BOOKMARKS, PREFERENCES, PASSWORDS, AUTOFILL, THEMES,
|
| - TYPED_URLS, EXTENSIONS, APPS,
|
| -#if BUILDFLAG(ENABLE_READING_LIST)
|
| - READING_LIST,
|
| -#endif
|
| - PROXY_TABS);
|
| -}
|
| -
|
| -bool IsUserSelectableType(ModelType model_type) {
|
| - return UserSelectableTypes().Has(model_type);
|
| -}
|
| -
|
| ModelTypeNameMap GetUserSelectableTypeNameMap() {
|
| ModelTypeNameMap type_names;
|
| ModelTypeSet type_set = UserSelectableTypes();
|
| @@ -499,47 +476,6 @@ ModelTypeSet EncryptableUserTypes() {
|
| return encryptable_user_types;
|
| }
|
|
|
| -ModelTypeSet PriorityUserTypes() {
|
| - return ModelTypeSet(DEVICE_INFO, PRIORITY_PREFERENCES);
|
| -}
|
| -
|
| -ModelTypeSet ControlTypes() {
|
| - // TODO(sync): We should be able to build the actual enumset's internal
|
| - // bitset value here at compile time, instead of makes a new one each time.
|
| - return ModelTypeSet::FromRange(FIRST_CONTROL_MODEL_TYPE,
|
| - LAST_CONTROL_MODEL_TYPE);
|
| -}
|
| -
|
| -ModelTypeSet ProxyTypes() {
|
| - return ModelTypeSet::FromRange(FIRST_PROXY_TYPE, LAST_PROXY_TYPE);
|
| -}
|
| -
|
| -bool IsControlType(ModelType model_type) {
|
| - return ControlTypes().Has(model_type);
|
| -}
|
| -
|
| -ModelTypeSet CoreTypes() {
|
| - ModelTypeSet result = PriorityCoreTypes();
|
| -
|
| - // The following are low priority core types.
|
| - result.Put(SYNCED_NOTIFICATIONS);
|
| - result.Put(SYNCED_NOTIFICATION_APP_INFO);
|
| - result.Put(SUPERVISED_USER_SHARED_SETTINGS);
|
| - result.Put(SUPERVISED_USER_WHITELISTS);
|
| -
|
| - return result;
|
| -}
|
| -
|
| -ModelTypeSet PriorityCoreTypes() {
|
| - ModelTypeSet result = ControlTypes();
|
| -
|
| - // The following are non-control core types.
|
| - result.Put(SUPERVISED_USERS);
|
| - result.Put(SUPERVISED_USER_SETTINGS);
|
| -
|
| - return result;
|
| -}
|
| -
|
| const char* ModelTypeToString(ModelType model_type) {
|
| // This is used in serialization routines as well as for displaying debug
|
| // information. Do not attempt to change these string values unless you know
|
|
|