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

Unified Diff: sync/syncable/entry.h

Issue 10989063: Changed DB to store node positions as Ordinals. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed memory leak error in unittest Created 8 years, 2 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/directory_backing_store_unittest.cc ('k') | sync/syncable/entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/entry.h
diff --git a/sync/syncable/entry.h b/sync/syncable/entry.h
index a7557588336971a79432f65ff1646bc83b015e77..1a2609c417a64f02ca83d6062c594ebb8326d826 100644
--- a/sync/syncable/entry.h
+++ b/sync/syncable/entry.h
@@ -91,6 +91,10 @@ class Entry {
DCHECK(kernel_);
return kernel_->ref(field);
}
+ inline const NodeOrdinal& Get(OrdinalField field) const {
+ DCHECK(kernel_);
+ return kernel_->ref(field);
+ }
inline bool Get(BitTemp field) const {
DCHECK(kernel_);
return kernel_->ref(field);
« no previous file with comments | « sync/syncable/directory_backing_store_unittest.cc ('k') | sync/syncable/entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698