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

Unified Diff: chrome/browser/search_engines/template_url_prepopulate_data.cc

Issue 10537154: A working implementation of AQS (Assisted Query Stats). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressed comments and added more docs. Created 8 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/search_engines/template_url_prepopulate_data.cc
diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.cc b/chrome/browser/search_engines/template_url_prepopulate_data.cc
index 7eccfdb12b298dcb36b4f7b180c6904254447298..77c4fcd5bc7a6b43b1006fe2970eaeddae70923f 100644
--- a/chrome/browser/search_engines/template_url_prepopulate_data.cc
+++ b/chrome/browser/search_engines/template_url_prepopulate_data.cc
@@ -1091,7 +1091,8 @@ const PrepopulatedEngine google = {
"http://www.google.com/favicon.ico",
"{google:baseURL}search?q={searchTerms}&{google:RLZ}"
"{google:acceptedSuggestion}{google:originalQueryForSuggestion}"
- "{google:searchFieldtrialParameter}sourceid=chrome&ie={inputEncoding}",
+ "{google:assistedQueryStats}{google:searchFieldtrialParameter}"
+ "sourceid=chrome&ie={inputEncoding}",
"UTF-8",
"{google:baseSuggestURL}search?{google:searchFieldtrialParameter}"
"client=chrome&hl={language}&q={searchTerms}",
@@ -3418,8 +3419,8 @@ SearchEngineType GetEngineType(const std::string& url) {
TemplateURLData data;
data.SetURL(url);
TemplateURL turl(NULL, data);
- GURL as_gurl(turl.url_ref().ReplaceSearchTerms(ASCIIToUTF16("x"),
- TemplateURLRef::NO_SUGGESTIONS_AVAILABLE, string16()));
+ GURL as_gurl(turl.url_ref().ReplaceSearchTerms(
+ TemplateURLRef::SearchTermsArgs(ASCIIToUTF16("x"))));
if (!as_gurl.is_valid())
return SEARCH_ENGINE_OTHER;
« no previous file with comments | « chrome/browser/search_engines/template_url.cc ('k') | chrome/browser/search_engines/template_url_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698