| 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 d7b5686b9f8ec631b0b3de789ef6a6700c85fd1c..a2f07678794477d53a5cc11c4ac1a7b02ca964e7 100644
|
| --- a/content/browser/renderer_host/render_view_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_view_host_impl.cc
|
| @@ -1139,6 +1139,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,
|
| @@ -1893,6 +1894,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) {
|
|
|