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

Unified Diff: chrome/browser/search_engines/prepopulated_engines_schema.json

Issue 11552020: Add search_terms_replacement_key field to TemplateURL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed logic to check search_terms_replacement_key in template_url.cc. This is for a next CL. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search_engines/prepopulated_engines_schema.json
diff --git a/chrome/browser/search_engines/prepopulated_engines_schema.json b/chrome/browser/search_engines/prepopulated_engines_schema.json
index 0838e224f5100ccc3d5a0744e4ac894cabaa5e1e..4904b1f66ce3cc512f3a4b93804f4e5c9fcc5b76 100644
--- a/chrome/browser/search_engines/prepopulated_engines_schema.json
+++ b/chrome/browser/search_engines/prepopulated_engines_schema.json
@@ -23,9 +23,9 @@
"optional": true
},
// If omitted, this engine does not support suggestions.
- { "field": "suggest_url", "type": "string", "optional": true },
+ { "field": "suggest_url", "type": "string", "optional": true },
// If omitted, this engine does not support instant.
- { "field": "instant_url", "type": "string", "optional": true },
+ { "field": "instant_url", "type": "string", "optional": true },
// A list of URL patterns that can be used, in addition to |search_url|,
// to extract search terms from a URL.
{
@@ -34,6 +34,15 @@
"contents": { "type": "string" },
"optional": true
},
+ // A parameter that, if present and non-zero in a search_url or
+ // instant_url, causes Chrome to replace the URL with the search term.
+ // The parameter must be in the query if the search terms are in the query,
+ // and in the ref if the search terms are in the ref.
+ {
+ "field": "search_terms_replacement_key",
+ "type": "string",
+ "optional": true
+ },
{
"field": "type",
"type": "enum",

Powered by Google App Engine
This is Rietveld 408576698