Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
index e71a5b9c32a2b6427942613f7d89ab18bbb2acbd..3d418ca69a2d5db37275b51aab5b5538bfb4d12f 100644 |
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
@@ -1147,8 +1147,11 @@ void BookmarkBarView::ShowContextMenuForView(View* source, |
// Browser may be null during testing. |
PageNavigator* navigator = |
browser() ? browser()->GetSelectedTabContents() : NULL; |
+ bool close_on_remove = |
+ (parent == profile_->GetBookmarkModel()->other_node() && |
+ parent->child_count() == 1); |
BookmarkContextMenu controller(GetWindow()->GetNativeWindow(), GetProfile(), |
- navigator, parent, nodes); |
+ navigator, parent, nodes, close_on_remove); |
controller.RunMenuAt(p); |
} |