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

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

Issue 1987009: Add routing info and unrecoverable error info to about:sync (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months 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
« no previous file with comments | « chrome/browser/sync/syncable/model_type.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/syncable/model_type.cc
===================================================================
--- chrome/browser/sync/syncable/model_type.cc (revision 49216)
+++ chrome/browser/sync/syncable/model_type.cc (working copy)
@@ -94,4 +94,22 @@
return UNSPECIFIED;
}
+std::string ModelTypeToString(ModelType model_type) {
+ switch (model_type) {
+ case BOOKMARKS:
+ return "Bookmarks";
+ case PREFERENCES:
+ return "Preferences";
+ case AUTOFILL:
+ return "Autofill";
+ case THEMES:
+ return "Themes";
+ case TYPED_URLS:
+ return "Typed URLs";
+ default:
+ NOTREACHED() << "No known extension for model type.";
+ return "INVALID";
+ }
+}
+
} // namespace syncable
« no previous file with comments | « chrome/browser/sync/syncable/model_type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698