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

Unified Diff: sync/syncable/entry.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/syncable/entry.h ('k') | sync/syncable/mutable_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/entry.cc
diff --git a/sync/syncable/entry.cc b/sync/syncable/entry.cc
index 07ec19afb0f571e4377630864ea767f960beddd7..c6cc4f0bc0e496c0efa0ea0e2644bb96e911a13a 100644
--- a/sync/syncable/entry.cc
+++ b/sync/syncable/entry.cc
@@ -95,6 +95,14 @@ ModelType Entry::GetModelType() const {
return UNSPECIFIED;
}
+Id Entry::GetPredecessorId() const {
+ return kernel_->ref(PREV_ID);
+}
+
+Id Entry::GetSuccessorId() const {
+ return kernel_->ref(NEXT_ID);
+}
+
std::ostream& operator<<(std::ostream& s, const Blob& blob) {
for (Blob::const_iterator i = blob.begin(); i != blob.end(); ++i)
s << std::hex << std::setw(2)
« no previous file with comments | « sync/syncable/entry.h ('k') | sync/syncable/mutable_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698