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

Unified Diff: chrome/browser/search_engines/template_url.h

Issue 11552020: Add search_terms_replacement_key field to TemplateURL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments now describe a simpler behavior for the parameter. Created 7 years, 12 months 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/template_url.h
diff --git a/chrome/browser/search_engines/template_url.h b/chrome/browser/search_engines/template_url.h
index 6fba137da66816fb4c5a162cfa714bbdfebd6b68..b5a357669fbc38e8e8a0d897eca9bad85f5ff3c0 100644
--- a/chrome/browser/search_engines/template_url.h
+++ b/chrome/browser/search_engines/template_url.h
@@ -352,6 +352,10 @@ struct TemplateURLData {
// search terms from a URL.
std::vector<std::string> alternate_urls;
+ // A parameter that, if present in the query or ref parameters of a search_url
+ // or instant_url, causes Chrome to replace the URL with the search term.
+ std::string search_terms_replacement_key;
+
private:
// Private so we can enforce using the setters and thus enforce that these
// fields are never empty.
@@ -427,6 +431,10 @@ class TemplateURL {
const std::string& sync_guid() const { return data_.sync_guid; }
+ const std::string& search_terms_replacement_key() const {
+ return data_.search_terms_replacement_key;
+ }
+
const TemplateURLRef& url_ref() const { return url_ref_; }
const TemplateURLRef& suggestions_url_ref() const {
return suggestions_url_ref_;
« no previous file with comments | « chrome/browser/search_engines/prepopulated_engines_schema.json ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698