Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / views / tab_contents / chrome_web_contents_view_delegate_views.cc
index 0acc51c..7086507 100644 (file)
@@ -119,6 +119,7 @@ void ChromeWebContentsViewDelegateViews::RestoreFocus() {
 }
 
 void ChromeWebContentsViewDelegateViews::ShowContextMenu(
+    content::RenderFrameHost* render_frame_host,
     const content::ContextMenuParams& params) {
   // Menus need a Widget to work. If we're not the active tab we won't
   // necessarily be in a widget.
@@ -127,7 +128,7 @@ void ChromeWebContentsViewDelegateViews::ShowContextMenu(
     return;
 
   context_menu_.reset(
-      RenderViewContextMenuViews::Create(web_contents_, params));
+      RenderViewContextMenuViews::Create(render_frame_host, params));
   context_menu_->Init();
 
   // Don't show empty menus.