Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: chrome/browser/sync/syncable/model_type.cc

Issue 8573011: Event tracing for sync events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));

Powered by Google App Engine
This is Rietveld 408576698