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

Unified Diff: chrome/browser/importer/importer.cc

Issue 155165: Lands http://codereview.chromium.org/155128 for Thiago.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « chrome/browser/bookmarks/bookmark_model_unittest.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/importer.cc
===================================================================
--- chrome/browser/importer/importer.cc (revision 20068)
+++ chrome/browser/importer/importer.cc (working copy)
@@ -123,8 +123,8 @@
for (int index = 0; index < parent->GetChildCount(); ++index) {
const BookmarkNode* node = parent->GetChild(index);
- if ((node->GetType() == history::StarredEntry::BOOKMARK_BAR ||
- node->GetType() == history::StarredEntry::USER_GROUP) &&
+ if ((node->GetType() == BookmarkNode::BOOKMARK_BAR ||
+ node->GetType() == BookmarkNode::FOLDER) &&
node->GetTitle() == folder_name) {
child = node;
break;
@@ -301,7 +301,8 @@
// Build a set containing the folder names of the other folder.
std::set<std::wstring> other_folder_names;
const BookmarkNode* other = model->other_node();
- for (int i = 0; i < other->GetChildCount(); ++i) {
+
+ for (int i = 0, child_count = other->GetChildCount(); i < child_count; ++i) {
const BookmarkNode* node = other->GetChild(i);
if (node->is_folder())
other_folder_names.insert(node->GetTitle());
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_unittest.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698