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 7a97cdcba59363d7515817bcd738a17ce6926129..b4285e55207d6b048f53a5a188223f197b5f04c8 100644 |
--- a/chrome/browser/sync/syncable/model_type.h |
+++ b/chrome/browser/sync/syncable/model_type.h |
@@ -113,6 +113,8 @@ ModelType GetModelTypeFromExtensionFieldNumber(int field_number); |
// a model type. |
int GetExtensionFieldNumberFromModelType(ModelType model_type); |
+// TODO(sync): The functions below badly need some cleanup. |
+ |
// Returns a string that represents the name of |model_type|. |
std::string ModelTypeToString(ModelType model_type); |
@@ -131,12 +133,6 @@ ModelType ModelTypeFromString(const std::string& model_type_string); |
std::string ModelTypeBitSetToString(const ModelTypeBitSet& model_types); |
-// Converts a string into a model type bitset. If successful, returns true. If |
-// failed to parse string, returns false and model_types is unspecified. |
-bool ModelTypeBitSetFromString( |
- const std::string& model_type_bitset_string, |
- ModelTypeBitSet* model_types); |
- |
// Convert a ModelTypeSet to a ModelTypeBitSet. |
ModelTypeBitSet ModelTypeBitSetFromSet(const ModelTypeSet& set); |
@@ -148,6 +144,8 @@ ModelTypeBitSet ModelTypeBitSetFromValue(const base::ListValue& value); |
// Caller takes ownership of returned list. |
base::ListValue* ModelTypeSetToValue(const ModelTypeSet& model_types); |
+ModelTypeSet ModelTypeSetFromValue(const base::ListValue& value); |
+ |
// Returns a string corresponding to the syncable tag for this datatype. |
std::string ModelTypeToRootTag(ModelType type); |