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

Side by Side 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: Move sugkey to permanent parameter position. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" 5 #include "chrome/browser/search_engines/template_url_prepopulate_data.h"
6 6
7 #if defined(OS_POSIX) && !defined(OS_MACOSX) 7 #if defined(OS_POSIX) && !defined(OS_MACOSX)
8 #include <locale.h> 8 #include <locale.h>
9 #endif 9 #endif
10 10
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 const PrepopulatedEngine google = { 1089 const PrepopulatedEngine google = {
1090 L"Google", 1090 L"Google",
1091 L"google.com", // This will be dynamically updated by the TemplateURL system. 1091 L"google.com", // This will be dynamically updated by the TemplateURL system.
1092 "http://www.google.com/favicon.ico", 1092 "http://www.google.com/favicon.ico",
1093 "{google:baseURL}search?q={searchTerms}&{google:RLZ}" 1093 "{google:baseURL}search?q={searchTerms}&{google:RLZ}"
1094 "{google:acceptedSuggestion}{google:originalQueryForSuggestion}" 1094 "{google:acceptedSuggestion}{google:originalQueryForSuggestion}"
1095 "{google:assistedQueryStats}{google:searchFieldtrialParameter}" 1095 "{google:assistedQueryStats}{google:searchFieldtrialParameter}"
1096 "sourceid=chrome&ie={inputEncoding}", 1096 "sourceid=chrome&ie={inputEncoding}",
1097 "UTF-8", 1097 "UTF-8",
1098 "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}" 1098 "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}"
1099 "client=chrome&hl={language}&q={searchTerms}", 1099 "client=chrome&hl={language}&q={searchTerms}&"
1100 "sugkey={google:suggestAPIKeyParameter}",
Peter Kasting 2012/09/14 20:47:04 If you change anything in here you need to change
Mark P 2012/09/14 21:23:23 I knew there was something like that. That answer
1100 "{google:baseURL}webhp?sourceid=chrome-instant&{google:RLZ}" 1101 "{google:baseURL}webhp?sourceid=chrome-instant&{google:RLZ}"
1101 "{google:instantEnabledParameter}ie={inputEncoding}", 1102 "{google:instantEnabledParameter}ie={inputEncoding}",
1102 SEARCH_ENGINE_GOOGLE, 1103 SEARCH_ENGINE_GOOGLE,
1103 1, 1104 1,
1104 }; 1105 };
1105 1106
1106 const PrepopulatedEngine guruji = { 1107 const PrepopulatedEngine guruji = {
1107 L"guruji", 1108 L"guruji",
1108 L"guruji.com", 1109 L"guruji.com",
1109 "http://guruji.com/favicon.ico", 1110 "http://guruji.com/favicon.ico",
(...skipping 2393 matching lines...) Expand 10 before | Expand all | Expand 10 after
3503 g_country_code_at_install = kCountryIDUnknown; 3504 g_country_code_at_install = kCountryIDUnknown;
3504 } else { 3505 } else {
3505 g_country_code_at_install = 3506 g_country_code_at_install =
3506 CountryCharsToCountryIDWithUpdate(country_code[0], country_code[1]); 3507 CountryCharsToCountryIDWithUpdate(country_code[0], country_code[1]);
3507 } 3508 }
3508 } 3509 }
3509 3510
3510 #endif 3511 #endif
3511 3512
3512 } // namespace TemplateURLPrepopulateData 3513 } // namespace TemplateURLPrepopulateData
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698