Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Issue 2577963002: Always show 'WEB SEARCH' item in action mode on Chrome (Closed)

Created:
4 years ago by Jinsuk Kim
Modified:
4 years ago
Reviewers:
Ted C, boliu
CC:
chromium-reviews, jam, darin-cc_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Always show 'WEB SEARCH' item in action mode on Chrome There was a regression not showing web search menu item in select action mode on Chrome if an activity for ACTION_WEB_SEARCH cannot be found in the system. Chrome should always show it since it can show the search result on a new tab. This CL fixes it by showing the item by default, and having other embedder (webview) configure it. BUG=674104 Committed: https://crrev.com/1f1083f8bf08eeda6a0e9a48dc9e16a8dca15b9f Cr-Commit-Position: refs/heads/master@{#439000}

Patch Set 1 #

Total comments: 2

Patch Set 2 : android_webview #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -13 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwActionModeCallback.java View 1 3 chunks +19 lines, -2 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java View 1 2 chunks +0 lines, -10 lines 0 comments Download

Messages

Total messages: 24 (16 generated)
Jinsuk Kim
FYI this was handled by ContentViewClient.doesPerformWebsearch(). Had thought we could do without it since embedders ...
4 years ago (2016-12-15 01:49:45 UTC) #2
Ted C
https://codereview.chromium.org/2577963002/diff/1/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java File content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java (right): https://codereview.chromium.org/2577963002/diff/1/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java#newcode961 content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java:961: private boolean isWebSearchAvailable() { I think this entire logic ...
4 years ago (2016-12-15 18:42:20 UTC) #7
Jinsuk Kim
https://codereview.chromium.org/2577963002/diff/1/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java File content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java (right): https://codereview.chromium.org/2577963002/diff/1/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java#newcode961 content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java:961: private boolean isWebSearchAvailable() { On 2016/12/15 18:42:19, Ted C ...
4 years ago (2016-12-15 23:20:05 UTC) #11
boliu
lgtm
4 years ago (2016-12-15 23:38:56 UTC) #12
Ted C
On 2016/12/15 23:20:05, Jinsuk Kim wrote: > https://codereview.chromium.org/2577963002/diff/1/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java > File > content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java > (right): > ...
4 years ago (2016-12-15 23:39:11 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2577963002/40001
4 years ago (2016-12-16 01:42:03 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years ago (2016-12-16 03:31:13 UTC) #22
commit-bot: I haz the power
4 years ago (2016-12-16 03:32:56 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1f1083f8bf08eeda6a0e9a48dc9e16a8dca15b9f
Cr-Commit-Position: refs/heads/master@{#439000}

Powered by Google App Engine
This is Rietveld 408576698