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

Unified Diff: components/enhanced_bookmarks/enhanced_bookmark_utils.cc

Issue 884933002: ★ Add Bookmarks Bar to the list of primary permanent nodes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « components/enhanced_bookmarks/enhanced_bookmark_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/enhanced_bookmarks/enhanced_bookmark_utils.cc
diff --git a/components/enhanced_bookmarks/enhanced_bookmark_utils.cc b/components/enhanced_bookmarks/enhanced_bookmark_utils.cc
index 13622ae1c9e8ef1e364861905ce804286f64b24a..337fb94ee312adcb179253578a5c39c03fd0a8be 100644
--- a/components/enhanced_bookmarks/enhanced_bookmark_utils.cc
+++ b/components/enhanced_bookmarks/enhanced_bookmark_utils.cc
@@ -46,6 +46,7 @@ std::vector<const BookmarkNode*> PrimaryPermanentNodes(BookmarkModel* model) {
std::vector<const BookmarkNode*> nodes;
nodes.push_back(model->other_node());
nodes.push_back(model->mobile_node());
+ nodes.push_back(model->bookmark_bar_node());
return nodes;
}
@@ -63,12 +64,6 @@ std::vector<const BookmarkNode*> RootLevelFolders(BookmarkModel* model) {
root_level_folders.push_back(node);
}
}
-
- // Add the bookmark bar if it has children.
- const BookmarkNode* bb_node = model->bookmark_bar_node();
- if (bb_node->child_count() > 0)
- root_level_folders.push_back(bb_node);
-
return root_level_folders;
}
« no previous file with comments | « components/enhanced_bookmarks/enhanced_bookmark_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698