| Index: content/browser/renderer_host/render_view_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
|
| index 0d7e469f1205156ed8f18d0f4e96ac2f68fab84d..cc6cc0bd53f003d6294efc20bbc6d5e85270f328 100644
|
| --- a/content/browser/renderer_host/render_view_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_view_host_impl.cc
|
| @@ -1142,6 +1142,7 @@ bool RenderViewHostImpl::OnMessageReceived(const IPC::Message& msg) {
|
| OnCancelDesktopNotification)
|
| #if defined(OS_MACOSX) || defined(OS_ANDROID)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_ShowPopup, OnShowPopup)
|
| + IPC_MESSAGE_HANDLER(ViewHostMsg_HidePopup, OnHidePopup)
|
| #endif
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnRunFileChooser)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_DidAccessInitialDocument,
|
| @@ -1896,6 +1897,12 @@ void RenderViewHostImpl::OnShowPopup(
|
| params.allow_multiple_selection);
|
| }
|
| }
|
| +
|
| +void RenderViewHostImpl::OnHidePopup() {
|
| + RenderViewHostDelegateView* view = delegate_->GetDelegateView();
|
| + if (view)
|
| + view->HidePopupMenu();
|
| +}
|
| #endif
|
|
|
| void RenderViewHostImpl::SetState(RenderViewHostImplState rvh_state) {
|
|
|