Index: content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java b/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java |
index 9c490279d5e91417e6f40ccc2d2e07efd67872ec..3106b317a0f852f350151c9f82c12e25d6b83430 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java |
@@ -741,9 +741,6 @@ public class SelectionPopupController extends ActionModeCallbackHelper { |
if (actionModeItem == MENU_ITEM_SHARE) { |
return isAllowedByClient && isShareAvailable(); |
} |
- if (actionModeItem == MENU_ITEM_WEB_SEARCH) { |
- return isAllowedByClient && isWebSearchAvailable(); |
- } |
return isAllowedByClient; |
} |
@@ -947,11 +944,4 @@ public class SelectionPopupController extends ActionModeCallbackHelper { |
return mContext.getPackageManager().queryIntentActivities(intent, |
PackageManager.MATCH_DEFAULT_ONLY).size() > 0; |
} |
- |
- private boolean isWebSearchAvailable() { |
- Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); |
- intent.putExtra(SearchManager.EXTRA_NEW_SEARCH, true); |
- return mContext.getPackageManager().queryIntentActivities(intent, |
- PackageManager.MATCH_DEFAULT_ONLY).size() > 0; |
- } |
} |