| 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 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1180 } | 1180 } |
| 1181 | 1181 |
| 1182 bool IsActOnceDataType(ModelType model_type) { | 1182 bool IsActOnceDataType(ModelType model_type) { |
| 1183 return model_type == HISTORY_DELETE_DIRECTIVES; | 1183 return model_type == HISTORY_DELETE_DIRECTIVES; |
| 1184 } | 1184 } |
| 1185 | 1185 |
| 1186 bool IsTypeWithServerGeneratedRoot(ModelType model_type) { | 1186 bool IsTypeWithServerGeneratedRoot(ModelType model_type) { |
| 1187 return model_type == BOOKMARKS || model_type == NIGORI; | 1187 return model_type == BOOKMARKS || model_type == NIGORI; |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 bool IsTypeWithClientGeneratedRoot(ModelType model_type) { |
| 1191 return IsRealDataType(model_type) && |
| 1192 !IsTypeWithServerGeneratedRoot(model_type); |
| 1193 } |
| 1194 |
| 1190 } // namespace syncer | 1195 } // namespace syncer |
| OLD | NEW |