Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Issue 11552020: Add search_terms_replacement_key field to TemplateURL. (Closed)

Created:
8 years ago by beaudoin
Modified:
7 years, 11 months ago
CC:
chromium-reviews, Raman Kakilate, Raghu Simha, benquan, dhollowa+watch_chromium.org, ahutter, dbeam+watch-autofill_chromium.org, Dane Wallinga, dyu1, Albert Bodenhamer, estade+watch_chromium.org, haitaol1, Ilya Sherman, tim (not reviewing), Ivan Korotkov
Visibility:
Public.

Description

Add search_terms_replacement_key field to TemplateURL. This CL is the first step in removing the hardcoded "espv" parameter used by instant-extended to detect when to perform search term replacement in the omnibox. The search_terms_replacement_key has beed added to prepopulated_engines, TemplateURL, policy, web_database, prefs, and sync. BUG=161602 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175014

Patch Set 1 #

Patch Set 2 : Added unit and browser tests. #

Patch Set 3 : Removed logic to check search_terms_replacement_key in template_url.cc. This is for a next CL. #

Total comments: 6

Patch Set 4 : Answered comments by hollowa and joaodasilva #

Patch Set 5 : Merged with protector removal #

Total comments: 21

Patch Set 6 : Answered PK's comments. #

Total comments: 9

Patch Set 7 : Comments now describe a simpler behavior for the parameter. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -61 lines) Patch
M chrome/app/policy/policy_templates.json View 1 2 3 4 5 6 2 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler.cc View 1 2 3 4 5 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store_unittest.cc View 1 7 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 4 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/search_engines/prepopulated_engines.json View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/search_engines/prepopulated_engines_schema.json View 1 2 3 4 5 6 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url.h View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data.cc View 1 2 3 4 5 6 5 chunks +26 lines, -20 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc View 1 2 3 4 5 6 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 3 4 8 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_factory.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/webdata/keyword_table.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/webdata/keyword_table.cc View 1 2 3 4 5 7 chunks +25 lines, -4 lines 0 comments Download
M chrome/browser/webdata/keyword_table_unittest.cc View 1 2 3 4 5 4 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/webdata/web_database.cc View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/webdata/web_database_migration_unittest.cc View 1 2 3 4 5 6 2 chunks +44 lines, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
A + chrome/test/data/web_database/version_48.sql View 1 2 3 4 1 chunk +3 lines, -25 lines 0 comments Download
M sync/protocol/proto_value_conversions.cc View 1 chunk +1 line, -0 lines 0 comments Download
M sync/protocol/search_engine_specifics.proto View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
beaudoin
-sky (although your review is welcome, everything seems covered.) This is a cross-cutting CL similar ...
8 years ago (2012-12-12 23:25:05 UTC) #1
dhollowa
c/b/webdata/web_database* LGTM w/ nit. I didn't look at the other stuff. https://codereview.chromium.org/11552020/diff/5001/chrome/browser/webdata/web_database_migration_unittest.cc File chrome/browser/webdata/web_database_migration_unittest.cc (right): ...
8 years ago (2012-12-13 01:23:08 UTC) #2
Joao da Silva
policy stuff lgtm! https://codereview.chromium.org/11552020/diff/5001/chrome/browser/search_engines/search_terms_data.h File chrome/browser/search_engines/search_terms_data.h (right): https://codereview.chromium.org/11552020/diff/5001/chrome/browser/search_engines/search_terms_data.h#newcode58 chrome/browser/search_engines/search_terms_data.h:58: // Returns the parameter key used ...
8 years ago (2012-12-13 10:12:26 UTC) #3
beaudoin
https://codereview.chromium.org/11552020/diff/5001/chrome/browser/search_engines/search_terms_data.h File chrome/browser/search_engines/search_terms_data.h (right): https://codereview.chromium.org/11552020/diff/5001/chrome/browser/search_engines/search_terms_data.h#newcode58 chrome/browser/search_engines/search_terms_data.h:58: // Returns the parameter key used in InstantExtended URLs. ...
8 years ago (2012-12-13 17:14:53 UTC) #4
beaudoin
PTAL Merged with the massive CL removing protector code. (Found here: https://chromiumcodereview.appspot.com/11493003 ) This bumped ...
8 years ago (2012-12-14 23:40:03 UTC) #5
Ivan Korotkov
Merge with protector CL lgtm
8 years ago (2012-12-15 08:09:10 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/11552020/diff/12021/chrome/browser/search_engines/prepopulated_engines_schema.json File chrome/browser/search_engines/prepopulated_engines_schema.json (right): https://codereview.chromium.org/11552020/diff/12021/chrome/browser/search_engines/prepopulated_engines_schema.json#newcode40 chrome/browser/search_engines/prepopulated_engines_schema.json:40: // and in the ref if the search ...
8 years ago (2012-12-18 01:54:42 UTC) #7
beaudoin
Answered Peter's comments. @dcblack: A few questions regarding GWS. @akalin: Still need an LGTM for ...
8 years ago (2012-12-20 04:23:29 UTC) #8
Joao da Silva
policy/ slgtm
8 years ago (2012-12-20 09:20:12 UTC) #9
akalin
lgtm after nits below https://codereview.chromium.org/11552020/diff/40001/chrome/browser/search_engines/template_url.h File chrome/browser/search_engines/template_url.h (right): https://codereview.chromium.org/11552020/diff/40001/chrome/browser/search_engines/template_url.h#newcode355 chrome/browser/search_engines/template_url.h:355: // A parameter that, if ...
8 years ago (2012-12-20 17:13:59 UTC) #10
Peter Kasting
https://codereview.chromium.org/11552020/diff/40001/chrome/browser/search_engines/template_url.h File chrome/browser/search_engines/template_url.h (right): https://codereview.chromium.org/11552020/diff/40001/chrome/browser/search_engines/template_url.h#newcode355 chrome/browser/search_engines/template_url.h:355: // A parameter that, if present and non-zero in ...
8 years ago (2012-12-20 19:09:28 UTC) #11
David Black
https://codereview.chromium.org/11552020/diff/12021/chrome/browser/search_engines/prepopulated_engines_schema.json File chrome/browser/search_engines/prepopulated_engines_schema.json (right): https://codereview.chromium.org/11552020/diff/12021/chrome/browser/search_engines/prepopulated_engines_schema.json#newcode40 chrome/browser/search_engines/prepopulated_engines_schema.json:40: // and in the ref if the search terms ...
8 years ago (2012-12-20 19:29:49 UTC) #12
Peter Kasting
https://codereview.chromium.org/11552020/diff/12021/chrome/browser/search_engines/prepopulated_engines_schema.json File chrome/browser/search_engines/prepopulated_engines_schema.json (right): https://codereview.chromium.org/11552020/diff/12021/chrome/browser/search_engines/prepopulated_engines_schema.json#newcode40 chrome/browser/search_engines/prepopulated_engines_schema.json:40: // and in the ref if the search terms ...
8 years ago (2012-12-20 19:37:12 UTC) #13
akalin
https://codereview.chromium.org/11552020/diff/40001/chrome/browser/search_engines/template_url.h File chrome/browser/search_engines/template_url.h (right): https://codereview.chromium.org/11552020/diff/40001/chrome/browser/search_engines/template_url.h#newcode355 chrome/browser/search_engines/template_url.h:355: // A parameter that, if present and non-zero in ...
8 years ago (2012-12-20 19:41:26 UTC) #14
Peter Kasting
https://codereview.chromium.org/11552020/diff/40001/chrome/browser/search_engines/template_url.h File chrome/browser/search_engines/template_url.h (right): https://codereview.chromium.org/11552020/diff/40001/chrome/browser/search_engines/template_url.h#newcode355 chrome/browser/search_engines/template_url.h:355: // A parameter that, if present and non-zero in ...
8 years ago (2012-12-20 19:43:16 UTC) #15
akalin
On 2012/12/20 19:43:16, Peter Kasting wrote: > https://codereview.chromium.org/11552020/diff/40001/chrome/browser/search_engines/template_url.h > File chrome/browser/search_engines/template_url.h (right): > > https://codereview.chromium.org/11552020/diff/40001/chrome/browser/search_engines/template_url.h#newcode355 ...
8 years ago (2012-12-20 19:45:54 UTC) #16
akalin
On 2012/12/20 19:45:54, akalin wrote: > On 2012/12/20 19:43:16, Peter Kasting wrote: > > > ...
8 years ago (2012-12-20 19:48:20 UTC) #17
David Black
> What about the query-versus-ref issue? Is it OK to just look for the param ...
8 years ago (2012-12-20 23:19:01 UTC) #18
Peter Kasting
On 2012/12/20 23:19:01, David Black wrote: > > I think you're describing the {google:instantExtendedParam} or ...
8 years ago (2012-12-20 23:23:35 UTC) #19
David Black
So long as we have the same security checks for requiring SSL connections in both ...
8 years ago (2012-12-20 23:53:08 UTC) #20
beaudoin
https://codereview.chromium.org/11552020/diff/12021/chrome/browser/search_engines/prepopulated_engines_schema.json File chrome/browser/search_engines/prepopulated_engines_schema.json (right): https://codereview.chromium.org/11552020/diff/12021/chrome/browser/search_engines/prepopulated_engines_schema.json#newcode40 chrome/browser/search_engines/prepopulated_engines_schema.json:40: // and in the ref if the search terms ...
7 years, 11 months ago (2013-01-03 18:49:39 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11552020/54001
7 years, 11 months ago (2013-01-03 18:50:17 UTC) #22
commit-bot: I haz the power
7 years, 11 months ago (2013-01-03 21:22:45 UTC) #23
Message was sent while issue was closed.
Change committed as 175014

Powered by Google App Engine
This is Rietveld 408576698