| Index: chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc
|
| diff --git a/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc b/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc
|
| index 2ae15357cc35a22eec83a36776f33e05d12c7003..36f50716560062b55574916f93fc1f774ad5e4de 100644
|
| --- a/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc
|
| +++ b/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc
|
| @@ -341,6 +341,10 @@ void TabContentsViewViews::ShowContextMenu(const ContextMenuParams& params) {
|
| context_menu_.reset(new RenderViewContextMenuViews(tab_contents_, params));
|
| context_menu_->Init();
|
|
|
| + // Don't show empty menus.
|
| + if (context_menu_->menu_model().GetItemCount() == 0)
|
| + return;
|
| +
|
| gfx::Point screen_point(params.x, params.y);
|
| views::View::ConvertPointToScreen(GetRootView(), &screen_point);
|
|
|
|
|