Index: chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc |
diff --git a/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc b/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc |
index 437ee94b863d5c9d98477afc621c80deed2c78a0..3c3feb0ea3cf62d78336486b5fd43378f426a5e4 100644 |
--- a/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc |
+++ b/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc |
@@ -123,7 +123,8 @@ void ChromeWebContentsViewDelegateViews::RestoreFocus() { |
} |
void ChromeWebContentsViewDelegateViews::ShowContextMenu( |
- const content::ContextMenuParams& params) { |
+ const content::ContextMenuParams& params, |
+ const content::ContextMenuSourceType& type) { |
context_menu_.reset( |
RenderViewContextMenuViews::Create(web_contents_, params)); |
context_menu_->Init(); |
@@ -152,7 +153,7 @@ void ChromeWebContentsViewDelegateViews::ShowContextMenu( |
// Enable recursive tasks on the message loop so we can get updates while |
// the context menu is being displayed. |
MessageLoop::ScopedNestableTaskAllower allow(MessageLoop::current()); |
- context_menu_->RunMenuAt(GetTopLevelWidget(), screen_point); |
+ context_menu_->RunMenuAt(GetTopLevelWidget(), screen_point, type); |
} |
void ChromeWebContentsViewDelegateViews::SizeChanged(const gfx::Size& size) { |