summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer/profile_writer.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-10 02:38:12 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-10 02:38:12 +0000
commit9c1a75a98415e74b4aa835786ae86825a11d2385 (patch)
tree612ccad3919bdf0458d7a616dec98f25d21a703b /chrome/browser/importer/profile_writer.cc
parent1738fde08f5ee274dac199c1a98da9b0be5230d0 (diff)
downloadchromium_src-9c1a75a98415e74b4aa835786ae86825a11d2385.zip
chromium_src-9c1a75a98415e74b4aa835786ae86825a11d2385.tar.gz
chromium_src-9c1a75a98415e74b4aa835786ae86825a11d2385.tar.bz2
Rename TreeNode::GetChildCount to TreeNode::child_count. Part 3.
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=existing unit_tests. Review URL: http://codereview.chromium.org/6639015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/importer/profile_writer.cc')
-rw-r--r--chrome/browser/importer/profile_writer.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/importer/profile_writer.cc b/chrome/browser/importer/profile_writer.cc
index 99d9d49..d84a920 100644
--- a/chrome/browser/importer/profile_writer.cc
+++ b/chrome/browser/importer/profile_writer.cc
@@ -105,7 +105,7 @@ void ProfileWriter::AddBookmarkEntry(
const std::wstring& folder_name = (!import_to_bookmark_bar &&
!it->in_toolbar && (i == it->path.begin())) ? real_first_folder : *i;
- for (int index = 0; index < parent->GetChildCount(); ++index) {
+ for (int index = 0; index < parent->child_count(); ++index) {
const BookmarkNode* node = parent->GetChild(index);
if ((node->type() == BookmarkNode::BOOKMARK_BAR ||
node->type() == BookmarkNode::FOLDER) &&
@@ -115,16 +115,16 @@ void ProfileWriter::AddBookmarkEntry(
}
}
if (child == NULL)
- child = model->AddGroup(parent, parent->GetChildCount(),
+ child = model->AddGroup(parent, parent->child_count(),
WideToUTF16Hack(folder_name));
parent = child;
}
groups_added_to.insert(parent);
if (it->is_folder) {
- model->AddGroup(parent, parent->GetChildCount(),
+ model->AddGroup(parent, parent->child_count(),
WideToUTF16Hack(it->title));
} else {
- model->AddURLWithCreationTime(parent, parent->GetChildCount(),
+ model->AddURLWithCreationTime(parent, parent->child_count(),
WideToUTF16Hack(it->title), it->url, it->creation_time);
}
@@ -298,7 +298,7 @@ std::wstring ProfileWriter::GenerateUniqueFolderName(
std::set<std::wstring> other_folder_names;
const BookmarkNode* other = model->other_node();
- for (int i = 0, child_count = other->GetChildCount(); i < child_count; ++i) {
+ for (int i = 0, child_count = other->child_count(); i < child_count; ++i) {
const BookmarkNode* node = other->GetChild(i);
if (node->is_folder())
other_folder_names.insert(UTF16ToWideHack(node->GetTitle()));