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

Issue 308053009: Add contextual search to the template url system (Closed)

Created:
6 years, 6 months ago by jeremycho
Modified:
6 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

This includes a new URL path /_/contextualsearch and a /search parameter specifying the contextual search version, if any. BUG=379196 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276874

Patch Set 1 : Patch 1 #

Total comments: 7

Patch Set 2 : Respond to comments. #

Total comments: 11

Patch Set 3 : Respond to comments and make contextual search /search requests accessible from Java. #

Total comments: 8

Patch Set 4 : Respond to comments #

Patch Set 5 : Fix test. #

Patch Set 6 : Add selection parameter. #

Total comments: 18

Patch Set 7 : Respond to comments. #

Patch Set 8 : Rebase and fix try error. #

Patch Set 9 : Rebase again. #

Patch Set 10 : Rebase again! #

Patch Set 11 : *sigh* another rebase! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -26 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/search_engines/TemplateUrlService.java View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url.h View 1 2 3 4 5 6 7 8 9 7 chunks +45 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +105 lines, -20 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_android.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_android.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +27 lines, -0 lines 0 comments Download
M components/search_engines/prepopulated_engines.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M components/search_engines/prepopulated_engines_schema.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M components/search_engines/template_url_data.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
jeremycho
Hi Donn - can you do the initial review? Thanks!
6 years, 6 months ago (2014-06-02 17:11:54 UTC) #1
pedro (no code reviews)
Great job Jeremy! This is looking good. I just left you a comment. https://codereview.chromium.org/308053009/diff/40001/chrome/browser/search_engines/template_url.h File ...
6 years, 6 months ago (2014-06-02 17:39:51 UTC) #2
donnd
Other than missing the base-page URL, this looks great to me too! I think we ...
6 years, 6 months ago (2014-06-02 18:09:46 UTC) #3
pedro (no code reviews)
On 2014/06/02 18:09:46, Donn wrote: > Other than missing the base-page URL, this looks great ...
6 years, 6 months ago (2014-06-02 18:17:24 UTC) #4
jeremycho
Thanks for the comments. https://codereview.chromium.org/308053009/diff/40001/chrome/browser/search_engines/prepopulated_engines.json File chrome/browser/search_engines/prepopulated_engines.json (right): https://codereview.chromium.org/308053009/diff/40001/chrome/browser/search_engines/prepopulated_engines.json#newcode533 chrome/browser/search_engines/prepopulated_engines.json:533: "contextual_search_url": "{google:baseURL}_/contextualsearch?{google:contextualSearchStart}{google:contextualSearchEnd}{google:contextualSearchContent}{google:contextualSearchEncoding}", Done. The version ...
6 years, 6 months ago (2014-06-02 21:24:08 UTC) #5
jeremycho
Hi Peter - can you please review this?
6 years, 6 months ago (2014-06-03 17:03:44 UTC) #6
Peter Kasting
https://codereview.chromium.org/308053009/diff/60001/chrome/browser/search_engines/prepopulated_engines.json File chrome/browser/search_engines/prepopulated_engines.json (right): https://codereview.chromium.org/308053009/diff/60001/chrome/browser/search_engines/prepopulated_engines.json#newcode533 chrome/browser/search_engines/prepopulated_engines.json:533: "contextual_search_url": "{google:baseURL}_/contextualsearch?{google:contextualSearchVersion}{google:contextualSearchStart}{google:contextualSearchEnd}{google:contextualSearchContent}{google:contextualSearchBasePageURL}{google:contextualSearchEncoding}", There are a couple of alternates to ...
6 years, 6 months ago (2014-06-03 21:47:09 UTC) #7
jeremycho
Appreciate the comments. We'll need to construct a contextual search request from our Java code, ...
6 years, 6 months ago (2014-06-04 00:22:11 UTC) #8
Peter Kasting
https://codereview.chromium.org/308053009/diff/60001/chrome/browser/search_engines/template_url.cc File chrome/browser/search_engines/template_url.cc (right): https://codereview.chromium.org/308053009/diff/60001/chrome/browser/search_engines/template_url.cc#newcode965 chrome/browser/search_engines/template_url.cc:965: DCHECK(!i->is_post_param); On 2014/06/04 00:22:11, jeremycho wrote: > Done. In ...
6 years, 6 months ago (2014-06-04 00:40:49 UTC) #9
jeremycho
https://codereview.chromium.org/308053009/diff/60001/chrome/browser/search_engines/template_url.cc File chrome/browser/search_engines/template_url.cc (right): https://codereview.chromium.org/308053009/diff/60001/chrome/browser/search_engines/template_url.cc#newcode965 chrome/browser/search_engines/template_url.cc:965: DCHECK(!i->is_post_param); Not sure I follow how the single replacement ...
6 years, 6 months ago (2014-06-04 03:33:04 UTC) #10
Peter Kasting
https://codereview.chromium.org/308053009/diff/60001/chrome/browser/search_engines/template_url.cc File chrome/browser/search_engines/template_url.cc (right): https://codereview.chromium.org/308053009/diff/60001/chrome/browser/search_engines/template_url.cc#newcode965 chrome/browser/search_engines/template_url.cc:965: DCHECK(!i->is_post_param); On 2014/06/04 03:33:04, jeremycho wrote: > Not sure ...
6 years, 6 months ago (2014-06-04 06:56:21 UTC) #11
donnd
On 2014/06/04 06:56:21, Peter Kasting wrote: > What I would do for now is probably ...
6 years, 6 months ago (2014-06-04 17:43:37 UTC) #12
jeremycho
On 2014/06/04 17:43:37, Donn wrote: > On 2014/06/04 06:56:21, Peter Kasting wrote: > > What ...
6 years, 6 months ago (2014-06-04 21:45:44 UTC) #13
jeremycho
Hi David, can you please review for TemplateUrlService.java? https://codereview.chromium.org/308053009/diff/80001/chrome/browser/search_engines/prepopulated_engines.json File chrome/browser/search_engines/prepopulated_engines.json (right): https://codereview.chromium.org/308053009/diff/80001/chrome/browser/search_engines/prepopulated_engines.json#newcode533 chrome/browser/search_engines/prepopulated_engines.json:533: "contextual_search_url": ...
6 years, 6 months ago (2014-06-04 21:49:34 UTC) #14
donnd
lgtm
6 years, 6 months ago (2014-06-04 21:51:43 UTC) #15
David Trainor- moved to gerrit
TemplateUrlService.java lgtm
6 years, 6 months ago (2014-06-05 16:24:27 UTC) #16
jeremycho
Friendly ping.
6 years, 6 months ago (2014-06-05 23:14:16 UTC) #17
Peter Kasting
Sorry, I've had a lot of review requests. I'll try to re-review tomorrow.
6 years, 6 months ago (2014-06-06 02:06:38 UTC) #18
Peter Kasting
LGTM https://codereview.chromium.org/308053009/diff/160001/chrome/browser/search_engines/template_url.cc File chrome/browser/search_engines/template_url.cc (right): https://codereview.chromium.org/308053009/diff/160001/chrome/browser/search_engines/template_url.cc#newcode105 chrome/browser/search_engines/template_url.cc:105: // Contextual search parameters. Nit: It seems like ...
6 years, 6 months ago (2014-06-06 17:51:34 UTC) #19
jeremycho
Thanks for the reviews. https://codereview.chromium.org/308053009/diff/160001/chrome/browser/search_engines/template_url.cc File chrome/browser/search_engines/template_url.cc (right): https://codereview.chromium.org/308053009/diff/160001/chrome/browser/search_engines/template_url.cc#newcode105 chrome/browser/search_engines/template_url.cc:105: // Contextual search parameters. On ...
6 years, 6 months ago (2014-06-06 21:51:46 UTC) #20
jeremycho
The CQ bit was checked by jeremycho@chromium.org
6 years, 6 months ago (2014-06-06 21:52:11 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremycho@chromium.org/308053009/130011
6 years, 6 months ago (2014-06-06 21:53:04 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-07 01:44:15 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-07 01:54:07 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/149774)
6 years, 6 months ago (2014-06-07 01:54:07 UTC) #25
jeremycho
The CQ bit was checked by jeremycho@chromium.org
6 years, 6 months ago (2014-06-11 20:39:32 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremycho@chromium.org/308053009/190001
6 years, 6 months ago (2014-06-11 20:40:39 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:03:35 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:07:56 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device/builds/149751) ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/21850) mac_chromium_compile_dbg ...
6 years, 6 months ago (2014-06-11 21:07:57 UTC) #30
jeremycho
The CQ bit was checked by jeremycho@chromium.org
6 years, 6 months ago (2014-06-11 21:44:56 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremycho@chromium.org/308053009/210001
6 years, 6 months ago (2014-06-11 21:46:38 UTC) #32
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 22:30:38 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:32:35 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/15723) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/18856)
6 years, 6 months ago (2014-06-11 22:32:36 UTC) #35
jeremycho
The CQ bit was checked by jeremycho@chromium.org
6 years, 6 months ago (2014-06-12 00:03:00 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremycho@chromium.org/308053009/230001
6 years, 6 months ago (2014-06-12 00:04:11 UTC) #37
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 6 months ago (2014-06-12 06:36:58 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-12 06:47:55 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_dbg_simulator/builds/160594) ios_rel_device on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device/builds/149994) ios_rel_device_ninja ...
6 years, 6 months ago (2014-06-12 06:47:56 UTC) #40
jeremycho
The CQ bit was checked by jeremycho@chromium.org
6 years, 6 months ago (2014-06-12 20:14:10 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremycho@chromium.org/308053009/250001
6 years, 6 months ago (2014-06-12 20:16:09 UTC) #42
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 01:08:06 UTC) #43
Message was sent while issue was closed.
Change committed as 276874

Powered by Google App Engine
This is Rietveld 408576698