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

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: Removed SupportsAssistedQueryStats. 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 6d2dbba25a8dd43b6edc3febc3769a59acaa3d0f..832fcd637fd6500a0520d59927ea7284cd04d26a 100644
--- a/chrome/browser/search_engines/template_url_prepopulate_data.cc
+++ b/chrome/browser/search_engines/template_url_prepopulate_data.cc
@@ -1091,6 +1091,7 @@ const PrepopulatedEngine google = {
"http://www.google.com/favicon.ico",
"{google:baseURL}search?q={searchTerms}&{google:RLZ}"
"{google:acceptedSuggestion}{google:originalQueryForSuggestion}"
+ "{google:assistedQueryStats}"
Peter Kasting 2012/06/16 03:14:17 Nit: I'd probably wrap after the "search field tri
Bart N 2012/06/16 23:38:10 Done.
"{google:searchFieldtrialParameter}sourceid=chrome&ie={inputEncoding}",
"UTF-8",
"{google:baseSuggestURL}search?{google:searchFieldtrialParameter}"
@@ -3281,7 +3282,7 @@ void RegisterUserPrefs(PrefService* prefs) {
int GetDataVersion(PrefService* prefs) {
// Increment this if you change the above data in ways that mean users with
// existing data should get a new version.
- const int kCurrentDataVersion = 39;
+ const int kCurrentDataVersion = 40;
// Allow tests to override the local version.
return (prefs && prefs->HasPrefPath(prefs::kSearchProviderOverridesVersion)) ?
prefs->GetInteger(prefs::kSearchProviderOverridesVersion) :
@@ -3415,8 +3416,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(
+ SearchTermsArgs(ASCIIToUTF16("x"))));
if (!as_gurl.is_valid())
return SEARCH_ENGINE_OTHER;

Powered by Google App Engine
This is Rietveld 408576698