Index: content/renderer/external_popup_menu.cc |
diff --git a/content/renderer/external_popup_menu.cc b/content/renderer/external_popup_menu.cc |
index 7bb01a1d32036ba35ac23e33a8128710868106ac..95b41a757e61d1acf0dbc6deaa99c0eaa188a970 100644 |
--- a/content/renderer/external_popup_menu.cc |
+++ b/content/renderer/external_popup_menu.cc |
@@ -63,6 +63,7 @@ void ExternalPopupMenu::close() { |
// |this| was deleted. |
} |
+#if defined(USE_EXTERNAL_POPUP_MENU) |
#if defined(OS_MACOSX) |
void ExternalPopupMenu::DidSelectItem(int index) { |
if (!popup_menu_client_) |
@@ -72,9 +73,7 @@ void ExternalPopupMenu::DidSelectItem(int index) { |
else |
popup_menu_client_->didAcceptIndex(index); |
} |
-#endif |
- |
-#if defined(OS_ANDROID) |
+#else |
void ExternalPopupMenu::DidSelectItems(bool canceled, |
const std::vector<int>& indices) { |
if (!popup_menu_client_) |
@@ -85,5 +84,6 @@ void ExternalPopupMenu::DidSelectItems(bool canceled, |
popup_menu_client_->didAcceptIndices(indices); |
} |
#endif |
+#endif |
} // namespace content |