| Index: content/browser/browser_plugin/browser_plugin_guest.cc
|
| diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| index 5bd8a2e23d94a521e398dd3e222f59ecd458f549..1ca75227250f2b84607dbe8c1d6a7f1f1bc136f1 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_guest.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| @@ -427,17 +427,10 @@ ColorChooser* BrowserPluginGuest::OpenColorChooser(
|
| }
|
|
|
| bool BrowserPluginGuest::HandleContextMenu(const ContextMenuParams& params) {
|
| - if (delegate_) {
|
| - WebContentsViewGuest* view_guest =
|
| - static_cast<WebContentsViewGuest*>(GetWebContents()->GetView());
|
| - ContextMenuParams context_menu_params =
|
| - view_guest->ConvertContextMenuParams(params);
|
| -
|
| - return delegate_->HandleContextMenu(context_menu_params);
|
| - }
|
| + if (!delegate_)
|
| + return false;
|
|
|
| - // Will be handled by WebContentsViewGuest.
|
| - return false;
|
| + return delegate_->HandleContextMenu(params);
|
| }
|
|
|
| void BrowserPluginGuest::HandleKeyboardEvent(
|
|
|