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

Unified Diff: sync/internal_api/base_node.cc

Issue 11637053: sync: Start moving away from PREV_ID and NEXT_ID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 11 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 | « sync/engine/syncer_util.cc ('k') | sync/internal_api/change_reorder_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/base_node.cc
diff --git a/sync/internal_api/base_node.cc b/sync/internal_api/base_node.cc
index f640532bdd95a1563d322bde69eaef626af8a6b1..f30c36e2f244bcdfd035ddc4f868f5cf509915cf 100644
--- a/sync/internal_api/base_node.cc
+++ b/sync/internal_api/base_node.cc
@@ -195,14 +195,14 @@ bool BaseNode::HasChildren() const {
}
int64 BaseNode::GetPredecessorId() const {
- syncable::Id id_string = GetEntry()->Get(syncable::PREV_ID);
+ syncable::Id id_string = GetEntry()->GetPredecessorId();
if (id_string.IsRoot())
return kInvalidId;
return IdToMetahandle(GetTransaction()->GetWrappedTrans(), id_string);
}
int64 BaseNode::GetSuccessorId() const {
- syncable::Id id_string = GetEntry()->Get(syncable::NEXT_ID);
+ syncable::Id id_string = GetEntry()->GetSuccessorId();
if (id_string.IsRoot())
return kInvalidId;
return IdToMetahandle(GetTransaction()->GetWrappedTrans(), id_string);
@@ -242,7 +242,7 @@ int BaseNode::GetTotalNodeCount() const {
syncable::Id child_id;
if (dir->GetFirstChildId(trans, id, &child_id) && !child_id.IsRoot())
stack.push(IdToMetahandle(trans, child_id));
- syncable::Id successor_id = entry.Get(syncable::NEXT_ID);
+ syncable::Id successor_id = entry.GetSuccessorId();
if (!successor_id.IsRoot())
stack.push(IdToMetahandle(trans, successor_id));
}
« no previous file with comments | « sync/engine/syncer_util.cc ('k') | sync/internal_api/change_reorder_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698