| Index: chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm
|
| diff --git a/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm b/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm
|
| index c0cc6ce096c7f10db4dcfc7a12c277c9d3a8250e..858108f898c1f8672ec3fb6365a70434cf33d79a 100644
|
| --- a/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm
|
| +++ b/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm
|
| @@ -10,6 +10,7 @@
|
| #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h"
|
| #include "content/public/browser/render_widget_host_view.h"
|
| #include "content/public/browser/web_contents.h"
|
| +#include "content/public/browser/web_contents_view.h"
|
|
|
| ChromeWebContentsViewDelegateMac::ChromeWebContentsViewDelegateMac(
|
| content::WebContents* web_contents)
|
| @@ -47,10 +48,10 @@ void ChromeWebContentsViewDelegateMac::ShowContextMenu(
|
| if (widget_view && widget_view->IsShowingContextMenu())
|
| return;
|
|
|
| - context_menu_.reset(
|
| - new RenderViewContextMenuMac(web_contents_,
|
| - params,
|
| - web_contents_->GetContentNativeView()));
|
| + context_menu_.reset(new RenderViewContextMenuMac(
|
| + web_contents_,
|
| + params,
|
| + web_contents_->GetView()->GetContentNativeView()));
|
| context_menu_->Init();
|
| }
|
|
|
|
|