diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-08 23:27:29 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-08 23:27:29 +0000 |
commit | 2d48ee84a9106c6c940f2eca90b1df2f4f9e8b6f (patch) | |
tree | c03683aaf8823ef3749c9dbc5795d2ec04ba7d9a /chrome/browser/extensions/extension_bookmarks_module.cc | |
parent | 7b405112c0556e36644b1cd8aa6f253952b4b89e (diff) | |
download | chromium_src-2d48ee84a9106c6c940f2eca90b1df2f4f9e8b6f.zip chromium_src-2d48ee84a9106c6c940f2eca90b1df2f4f9e8b6f.tar.gz chromium_src-2d48ee84a9106c6c940f2eca90b1df2f4f9e8b6f.tar.bz2 |
Rename TreeNode::GetParent() to TreeNode::parent(). Part 2
This is part of a serie of patches to make the TreeNode API more closer to style
used in the Views Tree API (see views/view.h for reference).
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/6626076
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77366 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_bookmarks_module.cc')
-rw-r--r-- | chrome/browser/extensions/extension_bookmarks_module.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/extensions/extension_bookmarks_module.cc b/chrome/browser/extensions/extension_bookmarks_module.cc index 706eb36..8616457 100644 --- a/chrome/browser/extensions/extension_bookmarks_module.cc +++ b/chrome/browser/extensions/extension_bookmarks_module.cc @@ -436,7 +436,7 @@ bool CreateBookmarkFunction::RunImpl() { error_ = keys::kNoParentError; return false; } - if (parent->GetParent() == NULL) { // Can't create children of the root. + if (parent->parent() == NULL) { // Can't create children of the root. error_ = keys::kNoParentError; return false; } @@ -517,7 +517,7 @@ bool MoveBookmarkFunction::RunImpl() { const BookmarkNode* parent = NULL; if (!destination->HasKey(keys::kParentIdKey)) { // Optional, defaults to current parent. - parent = node->GetParent(); + parent = node->parent(); } else { std::string parentId_string; EXTENSION_FUNCTION_VALIDATE(destination->GetString(keys::kParentIdKey, @@ -692,11 +692,11 @@ class RemoveBookmarksBucketMapper : public BookmarkBucketMapper<std::string> { for (IdList::iterator it = ids.begin(); it != ids.end(); ++it) { BookmarkModel* model = profile_->GetBookmarkModel(); const BookmarkNode* node = model->GetNodeByID(*it); - if (!node || !node->GetParent()) + if (!node || !node->parent()) return; std::string bucket_id; - bucket_id += UTF16ToUTF8(node->GetParent()->GetTitle()); + bucket_id += UTF16ToUTF8(node->parent()->GetTitle()); bucket_id += UTF16ToUTF8(node->GetTitle()); bucket_id += node->GetURL().spec(); buckets->push_back(GetBucket(base::SHA1HashString(bucket_id))); |