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

Unified Diff: sync/syncable/syncable_enum_conversions.cc

Issue 11341048: Populate versions on individual nodes in sync model and native bookmark model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head Created 8 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
« no previous file with comments | « sync/syncable/syncable_columns.h ('k') | sync/syncable/syncable_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/syncable_enum_conversions.cc
diff --git a/sync/syncable/syncable_enum_conversions.cc b/sync/syncable/syncable_enum_conversions.cc
index 3fdd7a8ca406785892bffbbe179aec1839c8b441..b4425a6750b8950d55720094ae64628d91a72ac6 100644
--- a/sync/syncable/syncable_enum_conversions.cc
+++ b/sync/syncable/syncable_enum_conversions.cc
@@ -45,11 +45,12 @@ const char* GetBaseVersionString(BaseVersion base_version) {
}
const char* GetInt64FieldString(Int64Field int64_field) {
- ASSERT_ENUM_BOUNDS(SERVER_VERSION, LOCAL_EXTERNAL_ID,
+ ASSERT_ENUM_BOUNDS(SERVER_VERSION, TRANSACTION_VERSION,
BASE_VERSION + 1, INT64_FIELDS_END - 1);
switch (int64_field) {
ENUM_CASE(SERVER_VERSION);
ENUM_CASE(LOCAL_EXTERNAL_ID);
+ ENUM_CASE(TRANSACTION_VERSION);
case INT64_FIELDS_END: break;
}
NOTREACHED();
@@ -57,8 +58,8 @@ const char* GetInt64FieldString(Int64Field int64_field) {
}
const char* GetTimeFieldString(TimeField time_field) {
- ASSERT_ENUM_BOUNDS(SERVER_VERSION, LOCAL_EXTERNAL_ID,
- BASE_VERSION + 1, INT64_FIELDS_END - 1);
+ ASSERT_ENUM_BOUNDS(MTIME, SERVER_CTIME,
+ TIME_FIELDS_BEGIN, TIME_FIELDS_END - 1);
switch (time_field) {
ENUM_CASE(MTIME);
ENUM_CASE(SERVER_MTIME);
« no previous file with comments | « sync/syncable/syncable_columns.h ('k') | sync/syncable/syncable_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698