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

Unified Diff: chrome/browser/autocomplete/zero_suggest_provider.h

Issue 17022004: Replace --google-base-suggest-url and --instant-url with --google-base-url. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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/autocomplete/zero_suggest_provider.h
===================================================================
--- chrome/browser/autocomplete/zero_suggest_provider.h (revision 208572)
+++ chrome/browser/autocomplete/zero_suggest_provider.h (working copy)
@@ -101,21 +101,22 @@
SearchProvider::SuggestResults* suggest_results,
SearchProvider::NavigationResults* navigation_results);
- // Creates AutocompleteMatches for "Search |provider_keyword| for
- // <suggestion>" for all suggestions in |results|, and adds them to |map|.
+ // Creates AutocompleteMatches to search |template_url| for "<suggestion>" for
+ // all suggestions in |results|, and adds them to |map|.
void AddSuggestResultsToMap(const SearchProvider::SuggestResults& results,
- const string16& provider_keyword,
+ const TemplateURL* template_url,
SearchProvider::MatchMap* map);
- // Creates an AutocompleteMatch for "Search |provider_keyword| for
- // |query_string|". The supplied |relevance| and |type| and
- // |accepted_suggestion| will also be used to create the AutocompleteMatch.
+ // Creates an AutocompleteMatch with the provided |relevance| and |type| to
+ // search |template_url| for |query_string|. |accepted_suggestion| will be
+ // used to generate Assisted Query Stats.
+ //
// Adds this match to |map|; if such a match already exists, whichever one
// has lower relevance is eliminated.
- void AddMatchToMap(const string16& query_string,
- const string16& provider_keyword,
- int relevance,
+ void AddMatchToMap(int relevance,
AutocompleteMatch::Type type,
+ const TemplateURL* template_url,
+ const string16& query_string,
int accepted_suggestion,
SearchProvider::MatchMap* map);
« no previous file with comments | « chrome/browser/autocomplete/search_provider_unittest.cc ('k') | chrome/browser/autocomplete/zero_suggest_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698