| Index: chrome/browser/tab_contents/render_view_context_menu.cc
|
| diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
|
| index b4b8518d4be1332e2a00c25c7dec9518985ce2cc..12962985c9b3c9c577c9090b61b70aab3cd3efbc 100644
|
| --- a/chrome/browser/tab_contents/render_view_context_menu.cc
|
| +++ b/chrome/browser/tab_contents/render_view_context_menu.cc
|
| @@ -1678,13 +1678,21 @@ RenderViewContextMenu::GetHandlersForLinkUrl() {
|
| return handlers;
|
| }
|
|
|
| -void RenderViewContextMenu::MenuWillShow() {
|
| +void RenderViewContextMenu::MenuWillShow(ui::SimpleMenuModel* source) {
|
| + // Ignore notifications from submenus.
|
| + if (source != &menu_model_)
|
| + return;
|
| +
|
| RenderWidgetHostView* view = source_tab_contents_->GetRenderWidgetHostView();
|
| if (view)
|
| view->ShowingContextMenu(true);
|
| }
|
|
|
| -void RenderViewContextMenu::MenuClosed() {
|
| +void RenderViewContextMenu::MenuClosed(ui::SimpleMenuModel* source) {
|
| + // Ignore notifications from submenus.
|
| + if (source != &menu_model_)
|
| + return;
|
| +
|
| RenderWidgetHostView* view = source_tab_contents_->GetRenderWidgetHostView();
|
| if (view)
|
| view->ShowingContextMenu(false);
|
|
|