}
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.
return;
context_menu_.reset(
- RenderViewContextMenuViews::Create(web_contents_, params));
+ RenderViewContextMenuViews::Create(render_frame_host, params));
context_menu_->Init();
// Don't show empty menus.