| Index: chrome/browser/tab_contents/moving_to_content/tab_contents_view_mac.mm
|
| diff --git a/chrome/browser/tab_contents/moving_to_content/tab_contents_view_mac.mm b/chrome/browser/tab_contents/moving_to_content/tab_contents_view_mac.mm
|
| index c98f06bf6e04c4b1b51634044b48dbd3463692e0..7d961b3e0162d45e0d9726c15b84efccd6902a2b 100644
|
| --- a/chrome/browser/tab_contents/moving_to_content/tab_contents_view_mac.mm
|
| +++ b/chrome/browser/tab_contents/moving_to_content/tab_contents_view_mac.mm
|
| @@ -352,12 +352,8 @@ void TabContentsViewMac::ShowContextMenu(const ContextMenuParams& params) {
|
| // get called multiple times - if so, don't create another context menu.
|
| // TODO(asvitkine): Fix the renderer so that it doesn't do this.
|
| RenderWidgetHostView* widget_view = tab_contents_->GetRenderWidgetHostView();
|
| - if (widget_view) {
|
| - RenderWidgetHostViewMac* widget_view_mac =
|
| - static_cast<RenderWidgetHostViewMac*>(widget_view);
|
| - if (widget_view_mac->is_showing_context_menu())
|
| - return;
|
| - }
|
| + if (widget_view && widget_view->showing_context_menu())
|
| + return;
|
|
|
| // Allow delegates to handle the context menu operation first.
|
| if (tab_contents_->GetDelegate() &&
|
|
|