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

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

Issue 11576044: Remove call to IsInstantExtendedAPIGoogleSearchUrl from ToolbarModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nit Created 7 years, 11 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 b5a357669fbc38e8e8a0d897eca9bad85f5ff3c0..9660347e8af2abcf197751d06a17b1e45b839000 100644
--- a/chrome/browser/search_engines/template_url.h
+++ b/chrome/browser/search_engines/template_url.h
@@ -473,15 +473,21 @@ class TemplateURL {
// Use the alternate URLs and the search URL to match the provided |url|
// and extract |search_terms| from it. Returns false and an empty
// |search_terms| if no search terms can be matched. The order in which the
- // alternate URLs are listed dictates their priority, the URL at index 0
- // is treated as the highest priority and the primary search URL is treated
- // as the lowest priority (see GetURL()). For example, if a TemplateURL has
+ // alternate URLs are listed dictates their priority, the URL at index 0 is
+ // treated as the highest priority and the primary search URL is treated as
+ // the lowest priority (see GetURL()). For example, if a TemplateURL has
// alternate URL "http://foo/#q={searchTerms}" and search URL
// "http://foo/?q={searchTerms}", and the URL to be decoded is
// "http://foo/?q=a#q=b", the alternate URL will match first and the decoded
// search term will be "b".
bool ExtractSearchTermsFromURL(const GURL& url, string16* search_terms);
+ // Returns true if the specified |url| contains the search terms replacement
+ // key in either the query or the ref. This method does not verify anything
+ // else about the URL. In particular, it does not check that the domain
+ // matches that of this TemplateURL.
+ bool HasSearchTermsReplacementKey(const GURL& url) const;
+
private:
friend class TemplateURLService;
« 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