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; |