Index: chrome/browser/sync/syncable/model_type.h |
diff --git a/chrome/browser/sync/syncable/model_type.h b/chrome/browser/sync/syncable/model_type.h |
index 077d243bc2d0abaff9454a38b0a8074211cee2e4..c619b7e3052644188394b2b81dea4c019267a608 100644 |
--- a/chrome/browser/sync/syncable/model_type.h |
+++ b/chrome/browser/sync/syncable/model_type.h |
@@ -89,8 +89,12 @@ ModelType GetModelType(const sync_pb::SyncEntity& sync_entity); |
// prefer using GetModelType where possible. |
ModelType GetModelTypeFromSpecifics(const sync_pb::EntitySpecifics& specifics); |
+// Returns a string that represents the name of |model_type|. |
std::string ModelTypeToString(ModelType model_type); |
+// Returns the ModelType corresponding to the name |model_type_string|. |
+ModelType ModelTypeFromString(const std::string& model_type_string); |
+ |
// Convert a real model type to a notification type (used for |
// subscribing to server-issued notifications). Returns true iff |
// |model_type| was a real model type and |notification_type| was |