Index: chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc |
diff --git a/chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc b/chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc |
index cc2284fc1f3e2afab03435f334ac5e3212df6b9f..df1d01601e42acc150bbb96fc0c3f7165f7b697a 100644 |
--- a/chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc |
+++ b/chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc |
@@ -104,8 +104,10 @@ void AddToTreeStore(BookmarkModel* model, int64 selected_id, |
GtkTreeStore* store, GtkTreeIter* selected_iter) { |
const BookmarkNode* root_node = model->root_node(); |
for (int i = 0; i < root_node->child_count(); ++i) { |
- AddToTreeStoreAt(root_node->GetChild(i), selected_id, store, selected_iter, |
- NULL); |
+ const BookmarkNode* child = root_node->GetChild(i); |
+ if (child->IsVisible()) { |
+ AddToTreeStoreAt(child, selected_id, store, selected_iter, NULL); |
+ } |
} |
} |