summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/change_reorder_buffer.cc
diff options
context:
space:
mode:
authorrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-08 22:17:50 +0000
committerrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-08 22:17:50 +0000
commitc4d8d38b76de0209e0065f6e5d74e70530721bd8 (patch)
tree58d6ff8ab19730cb382bb9dd3a1aa2783f8c7b58 /sync/internal_api/change_reorder_buffer.cc
parent68e0007d6f7441ab595848bff24f4d5a9909220c (diff)
downloadchromium_src-c4d8d38b76de0209e0065f6e5d74e70530721bd8.zip
chromium_src-c4d8d38b76de0209e0065f6e5d74e70530721bd8.tar.gz
chromium_src-c4d8d38b76de0209e0065f6e5d74e70530721bd8.tar.bz2
sync: Start moving away from PREV_ID and NEXT_ID
This change replaces serveral instances of Get(PREV_ID) and Get(NEXT_ID) with calls to the newly introduced GetPredecessorId() and GetSuccessorId(). This is done in anticipation of the change that will remove PREV_ID and NEXT_ID entirely. By making this change in advance, that patch will be smaller and easier to review. BUG=145412,126505 Review URL: https://chromiumcodereview.appspot.com/11637053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175599 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/change_reorder_buffer.cc')
-rw-r--r--sync/internal_api/change_reorder_buffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync/internal_api/change_reorder_buffer.cc b/sync/internal_api/change_reorder_buffer.cc
index e6e4e2f..5358fa2 100644
--- a/sync/internal_api/change_reorder_buffer.cc
+++ b/sync/internal_api/change_reorder_buffer.cc
@@ -216,7 +216,7 @@ bool ChangeReorderBuffer::GetAllChangesInTreeOrder(
// ordering.
if (operations_.find(handle) == operations_.end())
operations_[handle] = OP_UPDATE_POSITION_AND_PROPERTIES;
- id = child.Get(syncable::NEXT_ID);
+ id = child.GetSuccessorId();
}
}
}