diff options
author | stanisc <stanisc@chromium.org> | 2015-12-11 20:17:15 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-12 04:18:32 +0000 |
commit | 847ace1c673d3eb733c3210bbf8f7c19ac1eb63b (patch) | |
tree | c56e5e56c0fc2af3aacb7dacbbc5b1e273228cc2 /sync/syncable/entry.h | |
parent | 6c5bbb3ce0d88c89205776a553158c444c393c99 (diff) | |
download | chromium_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.h | 4 |
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); } |