Index: content/browser/frame_host/render_frame_host_impl.cc |
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc |
index 6cdb613b0e5a9ad62f92841cc9effc03ba2d095e..0f9379b206354739bb055c2e686026e535846048 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -584,7 +584,7 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) { |
OnDidChangeLoadProgress) |
IPC_MESSAGE_HANDLER(FrameHostMsg_SerializeAsMHTMLResponse, |
OnSerializeAsMHTMLResponse) |
-#if defined(OS_MACOSX) || defined(OS_ANDROID) |
+#if defined(USE_EXTERNAL_POPUP_MENU) |
IPC_MESSAGE_HANDLER(FrameHostMsg_ShowPopup, OnShowPopup) |
IPC_MESSAGE_HANDLER(FrameHostMsg_HidePopup, OnHidePopup) |
#endif |
@@ -1928,7 +1928,7 @@ void RenderFrameHostImpl::OnSerializeAsMHTMLResponse( |
this, job_id, success, digests_of_uris_of_serialized_resources); |
} |
-#if defined(OS_MACOSX) || defined(OS_ANDROID) |
+#if defined(USE_EXTERNAL_POPUP_MENU) |
void RenderFrameHostImpl::OnShowPopup( |
const FrameHostMsg_ShowPopup_Params& params) { |
RenderViewHostDelegateView* view = |
@@ -2618,6 +2618,7 @@ int RenderFrameHostImpl::GetProxyCount() { |
return frame_tree_node_->render_manager()->GetProxyCount(); |
} |
+#if defined(USE_EXTERNAL_POPUP_MENU) |
#if defined(OS_MACOSX) |
void RenderFrameHostImpl::DidSelectPopupMenuItem(int selected_index) { |
@@ -2628,7 +2629,7 @@ void RenderFrameHostImpl::DidCancelPopupMenu() { |
Send(new FrameMsg_SelectPopupMenuItem(routing_id_, -1)); |
} |
-#elif defined(OS_ANDROID) |
+#else |
void RenderFrameHostImpl::DidSelectPopupMenuItems( |
const std::vector<int>& selected_indices) { |
@@ -2641,6 +2642,7 @@ void RenderFrameHostImpl::DidCancelPopupMenu() { |
} |
#endif |
+#endif |
void RenderFrameHostImpl::SetNavigationsSuspended( |
bool suspend, |