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

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

Issue 7981006: [Sync] use base::Time in sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux compile errors Created 9 years, 3 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
Index: chrome/browser/sync/syncable/syncable_enum_conversions.cc
diff --git a/chrome/browser/sync/syncable/syncable_enum_conversions.cc b/chrome/browser/sync/syncable/syncable_enum_conversions.cc
index 95afe496e16571d06f107f68e6bee05ecbdacfd0..0a371d97892d48849498094366f8d42d3f47843b 100644
--- a/chrome/browser/sync/syncable/syncable_enum_conversions.cc
+++ b/chrome/browser/sync/syncable/syncable_enum_conversions.cc
@@ -48,13 +48,23 @@ const char* GetInt64FieldString(Int64Field int64_field) {
BASE_VERSION + 1, INT64_FIELDS_END - 1);
switch (int64_field) {
ENUM_CASE(SERVER_VERSION);
+ ENUM_CASE(SERVER_POSITION_IN_PARENT);
+ ENUM_CASE(LOCAL_EXTERNAL_ID);
+ case INT64_FIELDS_END: break;
+ }
+ NOTREACHED();
+ return "";
+}
+
+const char* GetTimeFieldString(TimeField time_field) {
+ ASSERT_ENUM_BOUNDS(SERVER_VERSION, LOCAL_EXTERNAL_ID,
+ BASE_VERSION + 1, INT64_FIELDS_END - 1);
+ switch (time_field) {
ENUM_CASE(MTIME);
ENUM_CASE(SERVER_MTIME);
ENUM_CASE(CTIME);
ENUM_CASE(SERVER_CTIME);
- ENUM_CASE(SERVER_POSITION_IN_PARENT);
- ENUM_CASE(LOCAL_EXTERNAL_ID);
- case INT64_FIELDS_END: break;
+ case TIME_FIELDS_END: break;
}
NOTREACHED();
return "";

Powered by Google App Engine
This is Rietveld 408576698