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

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

Issue 10905292: Add API key to omnibox's suggest requests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 42 -> 43 Created 8 years, 3 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
« no previous file with comments | « chrome/browser/search_engines/template_url.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0fae1a50f69e582bdd20bd197f187601b6699ccd..c89a3f0ba8e87bb5ef328af118b2caebba37423d 100644
--- a/chrome/browser/search_engines/template_url_prepopulate_data.cc
+++ b/chrome/browser/search_engines/template_url_prepopulate_data.cc
@@ -1097,7 +1097,8 @@ const PrepopulatedEngine google = {
"sourceid=chrome&ie={inputEncoding}",
"UTF-8",
"{google:baseSuggestURL}search?{google:searchFieldtrialParameter}"
- "client=chrome&hl={language}&q={searchTerms}",
+ "client=chrome&hl={language}&q={searchTerms}&"
+ "sugkey={google:suggestAPIKeyParameter}",
"{google:baseURL}webhp?sourceid=chrome-instant&{google:RLZ}"
"{google:instantEnabledParameter}ie={inputEncoding}",
SEARCH_ENGINE_GOOGLE,
@@ -3328,7 +3329,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 = 42;
+ const int kCurrentDataVersion = 43;
// Allow tests to override the local version.
return (prefs && prefs->HasPrefPath(prefs::kSearchProviderOverridesVersion)) ?
prefs->GetInteger(prefs::kSearchProviderOverridesVersion) :
« no previous file with comments | « chrome/browser/search_engines/template_url.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698