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

Issue 23654021: Expose the ability to perform a search from CVC. (Closed)

Created:
7 years, 3 months ago by David Trainor- moved to gerrit
Modified:
7 years, 3 months ago
Reviewers:
Ted C, Yaron
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Expose the ability to perform a search from CVC. Allow contextual search attempts to be piped out through the ContentViewClient. BUG=249041 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222573

Patch Set 1 #

Patch Set 2 : Moved intent kickoff back to callback #

Total comments: 18

Patch Set 3 : Addressed Comments #

Total comments: 2

Patch Set 4 : Remove useless method #

Messages

Total messages: 12 (0 generated)
David Trainor- moved to gerrit
ptal
7 years, 3 months ago (2013-09-10 15:50:58 UTC) #1
Ted C
https://chromiumcodereview.appspot.com/23654021/diff/2001/chrome/browser/search_engines/template_url_service_android.cc File chrome/browser/search_engines/template_url_service_android.cc (right): https://chromiumcodereview.appspot.com/23654021/diff/2001/chrome/browser/search_engines/template_url_service_android.cc#newcode143 chrome/browser/search_engines/template_url_service_android.cc:143: static jstring GetUrlForSearchQuery(JNIEnv* env, jclass, jstring jquery) { here ...
7 years, 3 months ago (2013-09-10 16:05:06 UTC) #2
Yaron
I think I'm missing some state on this change. This looks like it's adding an ...
7 years, 3 months ago (2013-09-10 16:31:46 UTC) #3
David Trainor- moved to gerrit
https://codereview.chromium.org/23654021/diff/2001/chrome/android/java/src/org/chromium/chrome/browser/search_engines/TemplateUrlService.java File chrome/android/java/src/org/chromium/chrome/browser/search_engines/TemplateUrlService.java (right): https://codereview.chromium.org/23654021/diff/2001/chrome/android/java/src/org/chromium/chrome/browser/search_engines/TemplateUrlService.java#newcode72 chrome/android/java/src/org/chromium/chrome/browser/search_engines/TemplateUrlService.java:72: * Finds the default search engine for the current ...
7 years, 3 months ago (2013-09-10 22:35:46 UTC) #4
Ted C
lgtm to w/ comment (although I would wait for Yaron's +1 as well) https://chromiumcodereview.appspot.com/23654021/diff/9001/content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java File ...
7 years, 3 months ago (2013-09-11 00:04:50 UTC) #5
Yaron
lgtm
7 years, 3 months ago (2013-09-11 00:21:11 UTC) #6
David Trainor- moved to gerrit
https://codereview.chromium.org/23654021/diff/9001/content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java File content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java (right): https://codereview.chromium.org/23654021/diff/9001/content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java#newcode200 content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java:200: String selection = mActionHandler.getSelectedText(); On 2013/09/11 00:04:50, Ted C ...
7 years, 3 months ago (2013-09-11 01:12:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrainor@chromium.org/23654021/16001
7 years, 3 months ago (2013-09-11 16:23:45 UTC) #8
commit-bot: I haz the power
Change committed as 222573
7 years, 3 months ago (2013-09-11 16:43:27 UTC) #9
Evan Stade
On 2013/09/11 16:43:27, I haz the power (commit-bot) wrote: > Change committed as 222573 could ...
7 years, 3 months ago (2013-09-14 00:51:34 UTC) #10
Evan Stade
On 2013/09/14 00:51:34, Evan Stade wrote: > On 2013/09/11 16:43:27, I haz the power (commit-bot) ...
7 years, 3 months ago (2013-09-14 00:52:36 UTC) #11
David Trainor- moved to gerrit
7 years, 3 months ago (2013-09-16 15:48:13 UTC) #12
Message was sent while issue was closed.
On 2013/09/14 00:52:36, Evan Stade wrote:
> On 2013/09/14 00:51:34, Evan Stade wrote:
> > On 2013/09/11 16:43:27, I haz the power (commit-bot) wrote:
> > > Change committed as 222573
> > 
> > could this have caused this failure:
> >
>
http://build.chromium.org/p/chromium.linux/builders/Android%252520Tests%25252...
> 
> [ RUN      ] TemplateURLTest.ReplacePageClassification
> ../../chrome/browser/search_engines/template_url_unittest.cc:1191: Failure
> Value of: result
>   Actual: "http://google.com/??q=foo"
> Expected: "http://www.google.com/?q=foo"
> ../../chrome/browser/search_engines/template_url_unittest.cc:1195: Failure
> Value of: result
>   Actual: "http://google.com/??pgcl=1&q=foo"
> Expected: "http://www.google.com/?pgcl=1&q=foo"
> [ERROR:frontend_data_type_controller.cc(232)] Bookmarks datatype error was
> encountered: Aborted
> ../../chrome/browser/search_engines/template_url_unittest.cc:1200: Failure
> Value of: result
>   Actual: "http://google.com/??pgcl=3&q=foo"
> Expected: "http://www.google.com/?pgcl=3&q=foo"
> [  FAILED  ] TemplateURLTest.ReplacePageClassification (3 ms)

Sorry just saw this.  Doubtful as I only added two methods and didn't change the
existing logic.  If it's still breaking let me know and I can revert.

Powered by Google App Engine
This is Rietveld 408576698