summaryrefslogtreecommitdiffstats
path: root/sync/syncable/entry.h
diff options
context:
space:
mode:
authorstanisc <stanisc@chromium.org>2015-12-11 20:17:15 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-12 04:18:32 +0000
commit847ace1c673d3eb733c3210bbf8f7c19ac1eb63b (patch)
treec56e5e56c0fc2af3aacb7dacbbc5b1e273228cc2 /sync/syncable/entry.h
parent6c5bbb3ce0d88c89205776a553158c444c393c99 (diff)
downloadchromium_src-847ace1c673d3eb733c3210bbf8f7c19ac1eb63b.zip
chromium_src-847ace1c673d3eb733c3210bbf8f7c19ac1eb63b.tar.gz
chromium_src-847ace1c673d3eb733c3210bbf8f7c19ac1eb63b.tar.bz2
Sync: Remove GetEntry() from BaseNode API.
1) Changed BaseNode::GetEntry() to be protected. 2) Introduced a couple of getters to expose some of the functionality that GetEntry() was used for. 3) Made all necessary changes to avoid calling GetEntry() outside of BaseNode, ReadNode, WriteNode, and a few specific unit tests. BUG=123674 Review URL: https://codereview.chromium.org/1517013004 Cr-Commit-Position: refs/heads/master@{#364901}
Diffstat (limited to 'sync/syncable/entry.h')
-rw-r--r--sync/syncable/entry.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sync/syncable/entry.h b/sync/syncable/entry.h
index 0c30ccd..47a7815 100644
--- a/sync/syncable/entry.h
+++ b/sync/syncable/entry.h
@@ -110,12 +110,12 @@ class SYNC_EXPORT Entry {
return kernel_->ref(SERVER_CTIME);
}
- Id GetId() const {
+ const Id& GetId() const {
DCHECK(kernel_);
return kernel_->ref(ID);
}
- Id GetParentId() const {
+ const Id& GetParentId() const {
DCHECK(kernel_);
return kernel_->ref(PARENT_ID);
}