Index: chrome/browser/sync/syncable/model_type.cc |
diff --git a/chrome/browser/sync/syncable/model_type.cc b/chrome/browser/sync/syncable/model_type.cc |
index aaf555eff12fed9d792ba4d1e0c08a039f7043f5..4354faefc10a7c8f3463f8da0f54e9ad00d50822 100644 |
--- a/chrome/browser/sync/syncable/model_type.cc |
+++ b/chrome/browser/sync/syncable/model_type.cc |
@@ -229,7 +229,7 @@ bool ShouldMaintainPosition(ModelType model_type) { |
return model_type == BOOKMARKS; |
} |
-std::string ModelTypeToString(ModelType model_type) { |
+const char* ModelTypeToCharPtr(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 |
// what you're doing. |
@@ -275,6 +275,10 @@ std::string ModelTypeToString(ModelType model_type) { |
return "INVALID"; |
} |
+std::string ModelTypeToString(ModelType model_type) { |
+ return ModelTypeToCharPtr(model_type); |
+} |
+ |
StringValue* ModelTypeToValue(ModelType model_type) { |
if (model_type >= syncable::FIRST_REAL_MODEL_TYPE) { |
return Value::CreateStringValue(ModelTypeToString(model_type)); |