| Index: chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
|
| diff --git a/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc b/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
|
| index 0b3a298bde3a3e251fbd934a10d7ba96f963231a..80695d769420558aec3bda5a6a5485dd17b6b2f3 100644
|
| --- a/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
|
| +++ b/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
|
| @@ -320,7 +320,6 @@ bool BookmarkMenuDelegate::ShowContextMenu(MenuItemView* source,
|
| ShouldCloseOnRemove(node)));
|
| context_menu_->set_observer(this);
|
| context_menu_->RunMenuAt(p, source_type);
|
| - context_menu_.reset(nullptr);
|
| return true;
|
| }
|
|
|
| @@ -434,6 +433,10 @@ void BookmarkMenuDelegate::DidRemoveBookmarks() {
|
| is_mutating_model_ = false;
|
| }
|
|
|
| +void BookmarkMenuDelegate::OnContextMenuClosed() {
|
| + context_menu_.reset();
|
| +}
|
| +
|
| bool BookmarkMenuDelegate::ShouldCloseOnRemove(const BookmarkNode* node) const {
|
| // We never need to close when embedded in the app menu.
|
| const bool is_shown_from_app_menu = parent_menu_item_ != nullptr;
|
|
|