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

Side by Side Diff: chrome/browser/search_engines/template_url_prepopulate_data.cc

Issue 3040022: Add new search engine logos to template url data.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_LINUX) 7 #if defined(OS_LINUX)
8 #include <locale.h> 8 #include <locale.h>
9 #endif 9 #endif
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/pref_service.h" 14 #include "chrome/browser/pref_service.h"
15 #include "chrome/browser/search_engines/template_url.h" 15 #include "chrome/browser/search_engines/template_url.h"
16 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
18 #include "grit/theme_resources.h"
18 19
19 #if defined(OS_WIN) 20 #if defined(OS_WIN)
20 #undef IN // On Windows, windef.h defines this, which screws up "India" cases. 21 #undef IN // On Windows, windef.h defines this, which screws up "India" cases.
21 #elif defined(OS_MACOSX) 22 #elif defined(OS_MACOSX)
22 #include "base/scoped_cftyperef.h" 23 #include "base/scoped_cftyperef.h"
23 #endif 24 #endif
24 25
25 using base::Time; 26 using base::Time;
26 27
27 namespace { 28 namespace {
28 29
29 // NOTE: See comments in GetDataVersion() below! You should probably not change 30 // NOTE: See comments in GetDataVersion() below! You should probably not change
30 // the data in this file without changing the result of that function! 31 // the data in this file without changing the result of that function!
31 32
32 // Engine definitions ////////////////////////////////////////////////////////// 33 // Engine definitions //////////////////////////////////////////////////////////
33 34
34 struct PrepopulatedEngine { 35 struct PrepopulatedEngine {
35 const wchar_t* const name; 36 const wchar_t* const name;
36 // If NULL, we'll autogenerate a keyword based on the search_url every time 37 // If NULL, we'll autogenerate a keyword based on the search_url every time
37 // someone asks. Only entries which need keywords to auto-track a dynamically 38 // someone asks. Only entries which need keywords to auto-track a dynamically
38 // generated search URL should use this. 39 // generated search URL should use this.
39 // If the empty string, the engine has no keyword. 40 // If the empty string, the engine has no keyword.
40 const wchar_t* const keyword; 41 const wchar_t* const keyword;
41 const char* const favicon_url; // If NULL, there is no favicon. 42 const char* const favicon_url; // If NULL, there is no favicon.
42 const wchar_t* const search_url; 43 const wchar_t* const search_url;
43 const char* const encoding; 44 const char* const encoding;
44 const wchar_t* const suggest_url; // If NULL, this engine does not support 45 const wchar_t* const suggest_url; // If NULL, this engine does not support
45 // suggestions. 46 // suggestions.
47 // TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER if no logo is available.
48 const TemplateURLPrepopulateData::SearchEngineType search_engine_type;
49 const int logo_id; // Id for logo image in search engine dialog.
46 // Unique id for this prepopulate engine (corresponds to 50 // Unique id for this prepopulate engine (corresponds to
47 // TemplateURL::prepopulate_id). This ID must be greater than zero and must 51 // TemplateURL::prepopulate_id). This ID must be greater than zero and must
48 // remain the same for a particular site regardless of how the url changes; 52 // remain the same for a particular site regardless of how the url changes;
49 // the ID is used when modifying engine data in subsequent versions, so that 53 // the ID is used when modifying engine data in subsequent versions, so that
50 // we can find the "old" entry to update even when the name or URL changes. 54 // we can find the "old" entry to update even when the name or URL changes.
51 // 55 //
52 // This ID must be "unique" within one country's prepopulated data, but two 56 // This ID must be "unique" within one country's prepopulated data, but two
53 // entries can share an ID if they represent the "same" engine (e.g. Yahoo! US 57 // entries can share an ID if they represent the "same" engine (e.g. Yahoo! US
54 // vs. Yahoo! UK) and will not appear in the same user-visible data set. This 58 // vs. Yahoo! UK) and will not appear in the same user-visible data set. This
55 // facilitates changes like adding more specific per-country data in the 59 // facilitates changes like adding more specific per-country data in the
(...skipping 13 matching lines...) Expand all
69 const int id; 73 const int id;
70 }; 74 };
71 75
72 const PrepopulatedEngine abcsok = { 76 const PrepopulatedEngine abcsok = {
73 L"ABC S\x00f8k", 77 L"ABC S\x00f8k",
74 L"abcsok.no", 78 L"abcsok.no",
75 "http://abcsok.no/favicon.ico", 79 "http://abcsok.no/favicon.ico",
76 L"http://abcsok.no/index.html?q={searchTerms}", 80 L"http://abcsok.no/index.html?q={searchTerms}",
77 "UTF-8", 81 "UTF-8",
78 NULL, 82 NULL,
83 TemplateURLPrepopulateData::SEARCH_ENGINE_ABCSOK,
84 IDR_SEARCH_ENGINE_LOGO_ABCSOK,
79 72, 85 72,
80 }; 86 };
81 87
82 const PrepopulatedEngine altavista = { 88 const PrepopulatedEngine altavista = {
83 L"AltaVista", 89 L"AltaVista",
84 L"altavista.com", 90 L"altavista.com",
85 "http://www.altavista.com/favicon.ico", 91 "http://www.altavista.com/favicon.ico",
86 L"http://www.altavista.com/web/results?q={searchTerms}", 92 L"http://www.altavista.com/web/results?q={searchTerms}",
87 "UTF-8", 93 "UTF-8",
88 NULL, 94 NULL,
95 TemplateURLPrepopulateData::SEARCH_ENGINE_ALTAVISTA,
96 IDR_SEARCH_ENGINE_LOGO_ALTAVISTA,
89 89, 97 89,
90 }; 98 };
91 99
92 const PrepopulatedEngine altavista_ar = { 100 const PrepopulatedEngine altavista_ar = {
93 L"AltaVista", 101 L"AltaVista",
94 L"ar.altavista.com", 102 L"ar.altavista.com",
95 "http://ar.altavista.com/favicon.ico", 103 "http://ar.altavista.com/favicon.ico",
96 L"http://ar.altavista.com/web/results?q={searchTerms}", 104 L"http://ar.altavista.com/web/results?q={searchTerms}",
97 "UTF-8", 105 "UTF-8",
98 NULL, 106 NULL,
107 TemplateURLPrepopulateData::SEARCH_ENGINE_ALTAVISTA,
108 IDR_SEARCH_ENGINE_LOGO_ALTAVISTA,
99 89, 109 89,
100 }; 110 };
101 111
102 const PrepopulatedEngine altavista_se = { 112 const PrepopulatedEngine altavista_se = {
103 L"AltaVista", 113 L"AltaVista",
104 L"se.altavista.com", 114 L"se.altavista.com",
105 "http://se.altavista.com/favicon.ico", 115 "http://se.altavista.com/favicon.ico",
106 L"http://se.altavista.com/web/results?q={searchTerms}", 116 L"http://se.altavista.com/web/results?q={searchTerms}",
107 "UTF-8", 117 "UTF-8",
108 NULL, 118 NULL,
119 TemplateURLPrepopulateData::SEARCH_ENGINE_ALTAVISTA,
120 IDR_SEARCH_ENGINE_LOGO_ALTAVISTA,
109 89, 121 89,
110 }; 122 };
111 123
112 const PrepopulatedEngine aol = { 124 const PrepopulatedEngine aol = {
113 L"AOL", 125 L"AOL",
114 L"aol.com", 126 L"aol.com",
115 "http://search.aol.com/favicon.ico", 127 "http://search.aol.com/favicon.ico",
116 L"http://search.aol.com/aol/search?query={searchTerms}", 128 L"http://search.aol.com/aol/search?query={searchTerms}",
117 "UTF-8", 129 "UTF-8",
118 NULL, 130 NULL,
131 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
132 IDR_SEARCH_ENGINE_LOGO_OTHER,
119 35, 133 35,
120 }; 134 };
121 135
122 const PrepopulatedEngine araby = { 136 const PrepopulatedEngine araby = {
123 L"\x0639\x0631\x0628\x064a", 137 L"\x0639\x0631\x0628\x064a",
124 L"araby.com", 138 L"araby.com",
125 "http://araby.com/favicon.ico", 139 "http://araby.com/favicon.ico",
126 L"http://araby.com/?q={searchTerms}", 140 L"http://araby.com/?q={searchTerms}",
127 "UTF-8", 141 "UTF-8",
128 NULL, 142 NULL,
143 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
144 IDR_SEARCH_ENGINE_LOGO_OTHER,
129 12, 145 12,
130 }; 146 };
131 147
132 const PrepopulatedEngine ask = { 148 const PrepopulatedEngine ask = {
133 L"Ask", 149 L"Ask",
134 L"ask.com", 150 L"ask.com",
135 "http://www.ask.com/favicon.ico", 151 "http://www.ask.com/favicon.ico",
136 L"http://www.ask.com/web?q={searchTerms}", 152 L"http://www.ask.com/web?q={searchTerms}",
137 "UTF-8", 153 "UTF-8",
138 L"http://ss.ask.com/query?q={searchTerms}&li=ff", 154 L"http://ss.ask.com/query?q={searchTerms}&li=ff",
155 TemplateURLPrepopulateData::SEARCH_ENGINE_ASK,
156 IDR_SEARCH_ENGINE_LOGO_ASK,
139 4, 157 4,
140 }; 158 };
141 159
142 const PrepopulatedEngine ask_de = { 160 const PrepopulatedEngine ask_de = {
143 L"Ask.com Deutschland", 161 L"Ask.com Deutschland",
144 L"de.ask.com", 162 L"de.ask.com",
145 "http://de.ask.com/favicon.ico", 163 "http://de.ask.com/favicon.ico",
146 L"http://de.ask.com/web?q={searchTerms}", 164 L"http://de.ask.com/web?q={searchTerms}",
147 "UTF-8", 165 "UTF-8",
148 L"http://ss.de.ask.com/query?q={searchTerms}&li=ff", 166 L"http://ss.de.ask.com/query?q={searchTerms}&li=ff",
167 TemplateURLPrepopulateData::SEARCH_ENGINE_ASK,
168 IDR_SEARCH_ENGINE_LOGO_ASK,
149 4, 169 4,
150 }; 170 };
151 171
152 const PrepopulatedEngine ask_es = { 172 const PrepopulatedEngine ask_es = {
153 L"Ask.com Espa" L"\x00f1" L"a", 173 L"Ask.com Espa" L"\x00f1" L"a",
154 L"es.ask.com", 174 L"es.ask.com",
155 "http://es.ask.com/favicon.ico", 175 "http://es.ask.com/favicon.ico",
156 L"http://es.ask.com/web?q={searchTerms}", 176 L"http://es.ask.com/web?q={searchTerms}",
157 "UTF-8", 177 "UTF-8",
158 L"http://ss.es.ask.com/query?q={searchTerms}&li=ff", 178 L"http://ss.es.ask.com/query?q={searchTerms}&li=ff",
179 TemplateURLPrepopulateData::SEARCH_ENGINE_ASK,
180 IDR_SEARCH_ENGINE_LOGO_ASK,
159 4, 181 4,
160 }; 182 };
161 183
162 const PrepopulatedEngine ask_it = { 184 const PrepopulatedEngine ask_it = {
163 L"Ask.com Italia", 185 L"Ask.com Italia",
164 L"it.ask.com", 186 L"it.ask.com",
165 "http://it.ask.com/favicon.ico", 187 "http://it.ask.com/favicon.ico",
166 L"http://it.ask.com/web?q={searchTerms}", 188 L"http://it.ask.com/web?q={searchTerms}",
167 "UTF-8", 189 "UTF-8",
168 L"http://ss.it.ask.com/query?q={searchTerms}&li=ff", 190 L"http://ss.it.ask.com/query?q={searchTerms}&li=ff",
191 TemplateURLPrepopulateData::SEARCH_ENGINE_ASK,
192 IDR_SEARCH_ENGINE_LOGO_ASK,
169 4, 193 4,
170 }; 194 };
171 195
172 const PrepopulatedEngine ask_nl = { 196 const PrepopulatedEngine ask_nl = {
173 L"Ask.com Nederland", 197 L"Ask.com Nederland",
174 L"nl.ask.com", 198 L"nl.ask.com",
175 "http://nl.ask.com/favicon.ico", 199 "http://nl.ask.com/favicon.ico",
176 L"http://nl.ask.com/web?q={searchTerms}", 200 L"http://nl.ask.com/web?q={searchTerms}",
177 "UTF-8", 201 "UTF-8",
178 L"http://ss.nl.ask.com/query?q={searchTerms}&li=ff", 202 L"http://ss.nl.ask.com/query?q={searchTerms}&li=ff",
203 TemplateURLPrepopulateData::SEARCH_ENGINE_ASK,
204 IDR_SEARCH_ENGINE_LOGO_ASK,
179 4, 205 4,
180 }; 206 };
181 207
182 const PrepopulatedEngine ask_uk = { 208 const PrepopulatedEngine ask_uk = {
183 L"Ask Jeeves", 209 L"Ask Jeeves",
184 L"uk.ask.com", 210 L"uk.ask.com",
185 "http://uk.ask.com/favicon.ico", 211 "http://uk.ask.com/favicon.ico",
186 L"http://uk.ask.com/web?q={searchTerms}", 212 L"http://uk.ask.com/web?q={searchTerms}",
187 "UTF-8", 213 "UTF-8",
188 L"http://ss.uk.ask.com/query?q={searchTerms}&li=ff", 214 L"http://ss.uk.ask.com/query?q={searchTerms}&li=ff",
215 TemplateURLPrepopulateData::SEARCH_ENGINE_ASK,
216 IDR_SEARCH_ENGINE_LOGO_ASK,
189 4, 217 4,
190 }; 218 };
191 219
192 const PrepopulatedEngine atlas_cz = { 220 const PrepopulatedEngine atlas_cz = {
193 L"Atlas", 221 L"Atlas",
194 L"atlas.cz", 222 L"atlas.cz",
195 "http://img.atlas.cz/favicon.ico", 223 "http://img.atlas.cz/favicon.ico",
196 L"http://search.atlas.cz/?q={searchTerms}", 224 L"http://search.atlas.cz/?q={searchTerms}",
197 "windows-1250", 225 "windows-1250",
198 NULL, 226 NULL,
227 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
228 IDR_SEARCH_ENGINE_LOGO_OTHER,
199 27, 229 27,
200 }; 230 };
201 231
202 const PrepopulatedEngine atlas_sk = { 232 const PrepopulatedEngine atlas_sk = {
203 L"ATLAS.SK", 233 L"ATLAS.SK",
204 L"atlas.sk", 234 L"atlas.sk",
205 "http://www.atlas.sk/images/favicon.ico", 235 "http://www.atlas.sk/images/favicon.ico",
206 L"http://hladaj.atlas.sk/fulltext/?phrase={searchTerms}", 236 L"http://hladaj.atlas.sk/fulltext/?phrase={searchTerms}",
207 "UTF-8", 237 "UTF-8",
208 NULL, 238 NULL,
239 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
240 IDR_SEARCH_ENGINE_LOGO_OTHER,
209 27, 241 27,
210 }; 242 };
211 243
212 const PrepopulatedEngine baidu = { 244 const PrepopulatedEngine baidu = {
213 L"\x767e\x5ea6", 245 L"\x767e\x5ea6",
214 L"baidu.com", 246 L"baidu.com",
215 "http://www.baidu.com/favicon.ico", 247 "http://www.baidu.com/favicon.ico",
216 L"http://www.baidu.com/s?wd={searchTerms}", 248 L"http://www.baidu.com/s?wd={searchTerms}",
217 "GB2312", 249 "GB2312",
218 NULL, 250 NULL,
251 TemplateURLPrepopulateData::SEARCH_ENGINE_BAIDU,
252 IDR_SEARCH_ENGINE_LOGO_BAIDU,
219 21, 253 21,
220 }; 254 };
221 255
222 const PrepopulatedEngine bing = { 256 const PrepopulatedEngine bing = {
223 L"Bing", 257 L"Bing",
224 L"bing.com", 258 L"bing.com",
225 "http://www.bing.com/s/wlflag.ico", 259 "http://www.bing.com/s/wlflag.ico",
226 L"http://www.bing.com/search?q={searchTerms}", 260 L"http://www.bing.com/search?q={searchTerms}",
227 "UTF-8", 261 "UTF-8",
228 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 262 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
263 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
264 IDR_SEARCH_ENGINE_LOGO_BING,
229 3, 265 3,
230 }; 266 };
231 267
232 const PrepopulatedEngine bing_ar_XA = { 268 const PrepopulatedEngine bing_ar_XA = {
233 L"Bing", 269 L"Bing",
234 L"", // bing.com is taken by bing_en_XA. 270 L"", // bing.com is taken by bing_en_XA.
235 "http://www.bing.com/s/wlflag.ico", 271 "http://www.bing.com/s/wlflag.ico",
236 L"http://www.bing.com/search?setmkt=ar-XA&q={searchTerms}", 272 L"http://www.bing.com/search?setmkt=ar-XA&q={searchTerms}",
237 "UTF-8", 273 "UTF-8",
238 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 274 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
275 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
276 IDR_SEARCH_ENGINE_LOGO_BING,
239 7, // Can't be 3 as this has to appear in the Arabian countries' lists 277 7, // Can't be 3 as this has to appear in the Arabian countries' lists
240 // alongside bing_en_XA. 278 // alongside bing_en_XA.
241 }; 279 };
242 280
243 const PrepopulatedEngine bing_bg_BG = { 281 const PrepopulatedEngine bing_bg_BG = {
244 L"Bing", 282 L"Bing",
245 L"bing.com", 283 L"bing.com",
246 "http://www.bing.com/s/wlflag.ico", 284 "http://www.bing.com/s/wlflag.ico",
247 L"http://www.bing.com/search?setmkt=bg-BG&q={searchTerms}", 285 L"http://www.bing.com/search?setmkt=bg-BG&q={searchTerms}",
248 "UTF-8", 286 "UTF-8",
249 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 287 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
288 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
289 IDR_SEARCH_ENGINE_LOGO_BING,
250 3, 290 3,
251 }; 291 };
252 292
253 const PrepopulatedEngine bing_cs_CZ = { 293 const PrepopulatedEngine bing_cs_CZ = {
254 L"Bing", 294 L"Bing",
255 L"bing.com", 295 L"bing.com",
256 "http://www.bing.com/s/wlflag.ico", 296 "http://www.bing.com/s/wlflag.ico",
257 L"http://www.bing.com/search?setmkt=cs-CZ&q={searchTerms}", 297 L"http://www.bing.com/search?setmkt=cs-CZ&q={searchTerms}",
258 "UTF-8", 298 "UTF-8",
259 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 299 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
300 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
301 IDR_SEARCH_ENGINE_LOGO_BING,
260 3, 302 3,
261 }; 303 };
262 304
263 const PrepopulatedEngine bing_da_DK = { 305 const PrepopulatedEngine bing_da_DK = {
264 L"Bing", 306 L"Bing",
265 L"bing.com", 307 L"bing.com",
266 "http://www.bing.com/s/wlflag.ico", 308 "http://www.bing.com/s/wlflag.ico",
267 L"http://www.bing.com/search?setmkt=da-DK&q={searchTerms}", 309 L"http://www.bing.com/search?setmkt=da-DK&q={searchTerms}",
268 "UTF-8", 310 "UTF-8",
269 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 311 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
312 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
313 IDR_SEARCH_ENGINE_LOGO_BING,
270 3, 314 3,
271 }; 315 };
272 316
273 const PrepopulatedEngine bing_de_AT = { 317 const PrepopulatedEngine bing_de_AT = {
274 L"Bing", 318 L"Bing",
275 L"bing.com", 319 L"bing.com",
276 "http://www.bing.com/s/wlflag.ico", 320 "http://www.bing.com/s/wlflag.ico",
277 L"http://www.bing.com/search?setmkt=de-AT&q={searchTerms}", 321 L"http://www.bing.com/search?setmkt=de-AT&q={searchTerms}",
278 "UTF-8", 322 "UTF-8",
279 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 323 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
324 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
325 IDR_SEARCH_ENGINE_LOGO_BING,
280 3, 326 3,
281 }; 327 };
282 328
283 const PrepopulatedEngine bing_de_CH = { 329 const PrepopulatedEngine bing_de_CH = {
284 L"Bing", 330 L"Bing",
285 L"bing.com", 331 L"bing.com",
286 "http://www.bing.com/s/wlflag.ico", 332 "http://www.bing.com/s/wlflag.ico",
287 L"http://www.bing.com/search?setmkt=de-CH&q={searchTerms}", 333 L"http://www.bing.com/search?setmkt=de-CH&q={searchTerms}",
288 "UTF-8", 334 "UTF-8",
289 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 335 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
336 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
337 IDR_SEARCH_ENGINE_LOGO_BING,
290 3, 338 3,
291 }; 339 };
292 340
293 const PrepopulatedEngine bing_de_DE = { 341 const PrepopulatedEngine bing_de_DE = {
294 L"Bing", 342 L"Bing",
295 L"bing.com", 343 L"bing.com",
296 "http://www.bing.com/s/wlflag.ico", 344 "http://www.bing.com/s/wlflag.ico",
297 L"http://www.bing.com/search?setmkt=de-DE&q={searchTerms}", 345 L"http://www.bing.com/search?setmkt=de-DE&q={searchTerms}",
298 "UTF-8", 346 "UTF-8",
299 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 347 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
348 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
349 IDR_SEARCH_ENGINE_LOGO_BING,
300 3, 350 3,
301 }; 351 };
302 352
303 const PrepopulatedEngine bing_el_GR = { 353 const PrepopulatedEngine bing_el_GR = {
304 L"Bing", 354 L"Bing",
305 L"bing.com", 355 L"bing.com",
306 "http://www.bing.com/s/wlflag.ico", 356 "http://www.bing.com/s/wlflag.ico",
307 L"http://www.bing.com/search?setmkt=el-GR&q={searchTerms}", 357 L"http://www.bing.com/search?setmkt=el-GR&q={searchTerms}",
308 "UTF-8", 358 "UTF-8",
309 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 359 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
360 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
361 IDR_SEARCH_ENGINE_LOGO_BING,
310 3, 362 3,
311 }; 363 };
312 364
313 const PrepopulatedEngine bing_en_AU = { 365 const PrepopulatedEngine bing_en_AU = {
314 L"Bing", 366 L"Bing",
315 L"bing.com", 367 L"bing.com",
316 "http://www.bing.com/s/wlflag.ico", 368 "http://www.bing.com/s/wlflag.ico",
317 L"http://www.bing.com/search?setmkt=en-AU&q={searchTerms}", 369 L"http://www.bing.com/search?setmkt=en-AU&q={searchTerms}",
318 "UTF-8", 370 "UTF-8",
319 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 371 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
372 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
373 IDR_SEARCH_ENGINE_LOGO_BING,
320 3, 374 3,
321 }; 375 };
322 376
323 const PrepopulatedEngine bing_en_CA = { 377 const PrepopulatedEngine bing_en_CA = {
324 L"Bing", 378 L"Bing",
325 L"bing.com", 379 L"bing.com",
326 "http://www.bing.com/s/wlflag.ico", 380 "http://www.bing.com/s/wlflag.ico",
327 L"http://www.bing.com/search?setmkt=en-CA&q={searchTerms}", 381 L"http://www.bing.com/search?setmkt=en-CA&q={searchTerms}",
328 "UTF-8", 382 "UTF-8",
329 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 383 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
384 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
385 IDR_SEARCH_ENGINE_LOGO_BING,
330 3, 386 3,
331 }; 387 };
332 388
333 const PrepopulatedEngine bing_en_GB = { 389 const PrepopulatedEngine bing_en_GB = {
334 L"Bing", 390 L"Bing",
335 L"bing.com", 391 L"bing.com",
336 "http://www.bing.com/s/wlflag.ico", 392 "http://www.bing.com/s/wlflag.ico",
337 L"http://www.bing.com/search?setmkt=en-GB&q={searchTerms}", 393 L"http://www.bing.com/search?setmkt=en-GB&q={searchTerms}",
338 "UTF-8", 394 "UTF-8",
339 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 395 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
396 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
397 IDR_SEARCH_ENGINE_LOGO_BING,
340 3, 398 3,
341 }; 399 };
342 400
343 const PrepopulatedEngine bing_en_ID = { 401 const PrepopulatedEngine bing_en_ID = {
344 L"Bing", 402 L"Bing",
345 L"bing.com", 403 L"bing.com",
346 "http://www.bing.com/s/wlflag.ico", 404 "http://www.bing.com/s/wlflag.ico",
347 L"http://www.bing.com/search?setmkt=en-ID&q={searchTerms}", 405 L"http://www.bing.com/search?setmkt=en-ID&q={searchTerms}",
348 "UTF-8", 406 "UTF-8",
349 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 407 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
408 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
409 IDR_SEARCH_ENGINE_LOGO_BING,
350 3, 410 3,
351 }; 411 };
352 412
353 const PrepopulatedEngine bing_en_IE = { 413 const PrepopulatedEngine bing_en_IE = {
354 L"Bing", 414 L"Bing",
355 L"bing.com", 415 L"bing.com",
356 "http://www.bing.com/s/wlflag.ico", 416 "http://www.bing.com/s/wlflag.ico",
357 L"http://www.bing.com/search?setmkt=en-IE&q={searchTerms}", 417 L"http://www.bing.com/search?setmkt=en-IE&q={searchTerms}",
358 "UTF-8", 418 "UTF-8",
359 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 419 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
420 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
421 IDR_SEARCH_ENGINE_LOGO_BING,
360 3, 422 3,
361 }; 423 };
362 424
363 const PrepopulatedEngine bing_en_IN = { 425 const PrepopulatedEngine bing_en_IN = {
364 L"Bing", 426 L"Bing",
365 L"bing.com", 427 L"bing.com",
366 "http://www.bing.com/s/wlflag.ico", 428 "http://www.bing.com/s/wlflag.ico",
367 L"http://www.bing.com/search?setmkt=en-IN&q={searchTerms}", 429 L"http://www.bing.com/search?setmkt=en-IN&q={searchTerms}",
368 "UTF-8", 430 "UTF-8",
369 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 431 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
432 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
433 IDR_SEARCH_ENGINE_LOGO_BING,
370 3, 434 3,
371 }; 435 };
372 436
373 const PrepopulatedEngine bing_en_MY = { 437 const PrepopulatedEngine bing_en_MY = {
374 L"Bing", 438 L"Bing",
375 L"bing.com", 439 L"bing.com",
376 "http://www.bing.com/s/wlflag.ico", 440 "http://www.bing.com/s/wlflag.ico",
377 L"http://www.bing.com/search?setmkt=en-MY&q={searchTerms}", 441 L"http://www.bing.com/search?setmkt=en-MY&q={searchTerms}",
378 "UTF-8", 442 "UTF-8",
379 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 443 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
444 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
445 IDR_SEARCH_ENGINE_LOGO_BING,
380 3, 446 3,
381 }; 447 };
382 448
383 const PrepopulatedEngine bing_en_NZ = { 449 const PrepopulatedEngine bing_en_NZ = {
384 L"Bing", 450 L"Bing",
385 L"bing.com", 451 L"bing.com",
386 "http://www.bing.com/s/wlflag.ico", 452 "http://www.bing.com/s/wlflag.ico",
387 L"http://www.bing.com/search?setmkt=en-NZ&q={searchTerms}", 453 L"http://www.bing.com/search?setmkt=en-NZ&q={searchTerms}",
388 "UTF-8", 454 "UTF-8",
389 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 455 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
456 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
457 IDR_SEARCH_ENGINE_LOGO_BING,
390 3, 458 3,
391 }; 459 };
392 460
393 const PrepopulatedEngine bing_en_PH = { 461 const PrepopulatedEngine bing_en_PH = {
394 L"Bing", 462 L"Bing",
395 L"bing.com", 463 L"bing.com",
396 "http://www.bing.com/s/wlflag.ico", 464 "http://www.bing.com/s/wlflag.ico",
397 L"http://www.bing.com/search?setmkt=en-PH&q={searchTerms}", 465 L"http://www.bing.com/search?setmkt=en-PH&q={searchTerms}",
398 "UTF-8", 466 "UTF-8",
399 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 467 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
468 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
469 IDR_SEARCH_ENGINE_LOGO_BING,
400 3, 470 3,
401 }; 471 };
402 472
403 const PrepopulatedEngine bing_en_SG = { 473 const PrepopulatedEngine bing_en_SG = {
404 L"Bing", 474 L"Bing",
405 L"bing.com", 475 L"bing.com",
406 "http://www.bing.com/s/wlflag.ico", 476 "http://www.bing.com/s/wlflag.ico",
407 L"http://www.bing.com/search?setmkt=en-SG&q={searchTerms}", 477 L"http://www.bing.com/search?setmkt=en-SG&q={searchTerms}",
408 "UTF-8", 478 "UTF-8",
409 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 479 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
480 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
481 IDR_SEARCH_ENGINE_LOGO_BING,
410 3, 482 3,
411 }; 483 };
412 484
413 const PrepopulatedEngine bing_en_US = { 485 const PrepopulatedEngine bing_en_US = {
414 L"Bing", 486 L"Bing",
415 L"bing.com", 487 L"bing.com",
416 "http://www.bing.com/s/wlflag.ico", 488 "http://www.bing.com/s/wlflag.ico",
417 L"http://www.bing.com/search?setmkt=en-US&q={searchTerms}", 489 L"http://www.bing.com/search?setmkt=en-US&q={searchTerms}",
418 "UTF-8", 490 "UTF-8",
419 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 491 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
492 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
493 IDR_SEARCH_ENGINE_LOGO_BING,
420 3, 494 3,
421 }; 495 };
422 496
423 const PrepopulatedEngine bing_en_XA = { 497 const PrepopulatedEngine bing_en_XA = {
424 L"Bing", 498 L"Bing",
425 L"bing.com", 499 L"bing.com",
426 "http://www.bing.com/s/wlflag.ico", 500 "http://www.bing.com/s/wlflag.ico",
427 L"http://www.bing.com/search?setmkt=en-XA&q={searchTerms}", 501 L"http://www.bing.com/search?setmkt=en-XA&q={searchTerms}",
428 "UTF-8", 502 "UTF-8",
429 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 503 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
504 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
505 IDR_SEARCH_ENGINE_LOGO_BING,
430 3, 506 3,
431 }; 507 };
432 508
433 const PrepopulatedEngine bing_en_ZA = { 509 const PrepopulatedEngine bing_en_ZA = {
434 L"Bing", 510 L"Bing",
435 L"bing.com", 511 L"bing.com",
436 "http://www.bing.com/s/wlflag.ico", 512 "http://www.bing.com/s/wlflag.ico",
437 L"http://www.bing.com/search?setmkt=en-ZA&q={searchTerms}", 513 L"http://www.bing.com/search?setmkt=en-ZA&q={searchTerms}",
438 "UTF-8", 514 "UTF-8",
439 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 515 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
516 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
517 IDR_SEARCH_ENGINE_LOGO_BING,
440 3, 518 3,
441 }; 519 };
442 520
443 const PrepopulatedEngine bing_es_AR = { 521 const PrepopulatedEngine bing_es_AR = {
444 L"Bing", 522 L"Bing",
445 L"bing.com", 523 L"bing.com",
446 "http://www.bing.com/s/wlflag.ico", 524 "http://www.bing.com/s/wlflag.ico",
447 L"http://www.bing.com/search?setmkt=es-AR&q={searchTerms}", 525 L"http://www.bing.com/search?setmkt=es-AR&q={searchTerms}",
448 "UTF-8", 526 "UTF-8",
449 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 527 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
528 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
529 IDR_SEARCH_ENGINE_LOGO_BING,
450 3, 530 3,
451 }; 531 };
452 532
453 const PrepopulatedEngine bing_es_CL = { 533 const PrepopulatedEngine bing_es_CL = {
454 L"Bing", 534 L"Bing",
455 L"bing.com", 535 L"bing.com",
456 "http://www.bing.com/s/wlflag.ico", 536 "http://www.bing.com/s/wlflag.ico",
457 L"http://www.bing.com/search?setmkt=es-CL&q={searchTerms}", 537 L"http://www.bing.com/search?setmkt=es-CL&q={searchTerms}",
458 "UTF-8", 538 "UTF-8",
459 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 539 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
540 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
541 IDR_SEARCH_ENGINE_LOGO_BING,
460 3, 542 3,
461 }; 543 };
462 544
463 const PrepopulatedEngine bing_es_ES = { 545 const PrepopulatedEngine bing_es_ES = {
464 L"Bing", 546 L"Bing",
465 L"bing.com", 547 L"bing.com",
466 "http://www.bing.com/s/wlflag.ico", 548 "http://www.bing.com/s/wlflag.ico",
467 L"http://www.bing.com/search?setmkt=es-ES&q={searchTerms}", 549 L"http://www.bing.com/search?setmkt=es-ES&q={searchTerms}",
468 "UTF-8", 550 "UTF-8",
469 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 551 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
552 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
553 IDR_SEARCH_ENGINE_LOGO_BING,
470 3, 554 3,
471 }; 555 };
472 556
473 const PrepopulatedEngine bing_es_MX = { 557 const PrepopulatedEngine bing_es_MX = {
474 L"Bing", 558 L"Bing",
475 L"bing.com", 559 L"bing.com",
476 "http://www.bing.com/s/wlflag.ico", 560 "http://www.bing.com/s/wlflag.ico",
477 L"http://www.bing.com/search?setmkt=es-MX&q={searchTerms}", 561 L"http://www.bing.com/search?setmkt=es-MX&q={searchTerms}",
478 "UTF-8", 562 "UTF-8",
479 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 563 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
564 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
565 IDR_SEARCH_ENGINE_LOGO_BING,
480 3, 566 3,
481 }; 567 };
482 568
483 const PrepopulatedEngine bing_es_XL = { 569 const PrepopulatedEngine bing_es_XL = {
484 L"Bing", 570 L"Bing",
485 L"bing.com", 571 L"bing.com",
486 "http://www.bing.com/s/wlflag.ico", 572 "http://www.bing.com/s/wlflag.ico",
487 L"http://www.bing.com/search?setmkt=es-XL&q={searchTerms}", 573 L"http://www.bing.com/search?setmkt=es-XL&q={searchTerms}",
488 "UTF-8", 574 "UTF-8",
489 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 575 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
576 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
577 IDR_SEARCH_ENGINE_LOGO_BING,
490 3, 578 3,
491 }; 579 };
492 580
493 const PrepopulatedEngine bing_et_EE = { 581 const PrepopulatedEngine bing_et_EE = {
494 L"Bing", 582 L"Bing",
495 L"bing.com", 583 L"bing.com",
496 "http://www.bing.com/s/wlflag.ico", 584 "http://www.bing.com/s/wlflag.ico",
497 L"http://www.bing.com/search?setmkt=et-EE&q={searchTerms}", 585 L"http://www.bing.com/search?setmkt=et-EE&q={searchTerms}",
498 "UTF-8", 586 "UTF-8",
499 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 587 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
588 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
589 IDR_SEARCH_ENGINE_LOGO_BING,
500 3, 590 3,
501 }; 591 };
502 592
503 const PrepopulatedEngine bing_fi_FI = { 593 const PrepopulatedEngine bing_fi_FI = {
504 L"Bing", 594 L"Bing",
505 L"bing.com", 595 L"bing.com",
506 "http://www.bing.com/s/wlflag.ico", 596 "http://www.bing.com/s/wlflag.ico",
507 L"http://www.bing.com/search?setmkt=fi-FI&q={searchTerms}", 597 L"http://www.bing.com/search?setmkt=fi-FI&q={searchTerms}",
508 "UTF-8", 598 "UTF-8",
509 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 599 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
600 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
601 IDR_SEARCH_ENGINE_LOGO_BING,
510 3, 602 3,
511 }; 603 };
512 604
513 const PrepopulatedEngine bing_fr_BE = { 605 const PrepopulatedEngine bing_fr_BE = {
514 L"Bing", 606 L"Bing",
515 L"", // bing.com is taken by bing_nl_BE. 607 L"", // bing.com is taken by bing_nl_BE.
516 "http://www.bing.com/s/wlflag.ico", 608 "http://www.bing.com/s/wlflag.ico",
517 L"http://www.bing.com/search?setmkt=fr-BE&q={searchTerms}", 609 L"http://www.bing.com/search?setmkt=fr-BE&q={searchTerms}",
518 "UTF-8", 610 "UTF-8",
519 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 611 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
612 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
613 IDR_SEARCH_ENGINE_LOGO_BING,
520 7, 614 7,
521 }; 615 };
522 616
523 const PrepopulatedEngine bing_fr_CA = { 617 const PrepopulatedEngine bing_fr_CA = {
524 L"Bing", 618 L"Bing",
525 L"", // bing.com is taken by bing_en_CA. 619 L"", // bing.com is taken by bing_en_CA.
526 "http://www.bing.com/s/wlflag.ico", 620 "http://www.bing.com/s/wlflag.ico",
527 L"http://www.bing.com/search?setmkt=fr-CA&q={searchTerms}", 621 L"http://www.bing.com/search?setmkt=fr-CA&q={searchTerms}",
528 "UTF-8", 622 "UTF-8",
529 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 623 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
624 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
625 IDR_SEARCH_ENGINE_LOGO_BING,
530 7, 626 7,
531 }; 627 };
532 628
533 const PrepopulatedEngine bing_fr_CH = { 629 const PrepopulatedEngine bing_fr_CH = {
534 L"Bing", 630 L"Bing",
535 L"", // bing.com is taken by bing_de_CH. 631 L"", // bing.com is taken by bing_de_CH.
536 "http://www.bing.com/s/wlflag.ico", 632 "http://www.bing.com/s/wlflag.ico",
537 L"http://www.bing.com/search?setmkt=fr-CH&q={searchTerms}", 633 L"http://www.bing.com/search?setmkt=fr-CH&q={searchTerms}",
538 "UTF-8", 634 "UTF-8",
539 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 635 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
636 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
637 IDR_SEARCH_ENGINE_LOGO_BING,
540 7, 638 7,
541 }; 639 };
542 640
543 const PrepopulatedEngine bing_fr_FR = { 641 const PrepopulatedEngine bing_fr_FR = {
544 L"Bing", 642 L"Bing",
545 L"bing.com", 643 L"bing.com",
546 "http://www.bing.com/s/wlflag.ico", 644 "http://www.bing.com/s/wlflag.ico",
547 L"http://www.bing.com/search?setmkt=fr-FR&q={searchTerms}", 645 L"http://www.bing.com/search?setmkt=fr-FR&q={searchTerms}",
548 "UTF-8", 646 "UTF-8",
549 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 647 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
648 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
649 IDR_SEARCH_ENGINE_LOGO_BING,
550 3, 650 3,
551 }; 651 };
552 652
553 const PrepopulatedEngine bing_he_IL = { 653 const PrepopulatedEngine bing_he_IL = {
554 L"Bing", 654 L"Bing",
555 L"bing.com", 655 L"bing.com",
556 "http://www.bing.com/s/wlflag.ico", 656 "http://www.bing.com/s/wlflag.ico",
557 L"http://www.bing.com/search?setmkt=he-IL&q={searchTerms}", 657 L"http://www.bing.com/search?setmkt=he-IL&q={searchTerms}",
558 "UTF-8", 658 "UTF-8",
559 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 659 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
660 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
661 IDR_SEARCH_ENGINE_LOGO_BING,
560 3, 662 3,
561 }; 663 };
562 664
563 const PrepopulatedEngine bing_hr_HR = { 665 const PrepopulatedEngine bing_hr_HR = {
564 L"Bing", 666 L"Bing",
565 L"bing.com", 667 L"bing.com",
566 "http://www.bing.com/s/wlflag.ico", 668 "http://www.bing.com/s/wlflag.ico",
567 L"http://www.bing.com/search?setmkt=hr-HR&q={searchTerms}", 669 L"http://www.bing.com/search?setmkt=hr-HR&q={searchTerms}",
568 "UTF-8", 670 "UTF-8",
569 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 671 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
672 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
673 IDR_SEARCH_ENGINE_LOGO_BING,
570 3, 674 3,
571 }; 675 };
572 676
573 const PrepopulatedEngine bing_hu_HU = { 677 const PrepopulatedEngine bing_hu_HU = {
574 L"Bing", 678 L"Bing",
575 L"bing.com", 679 L"bing.com",
576 "http://www.bing.com/s/wlflag.ico", 680 "http://www.bing.com/s/wlflag.ico",
577 L"http://www.bing.com/search?setmkt=hu-HU&q={searchTerms}", 681 L"http://www.bing.com/search?setmkt=hu-HU&q={searchTerms}",
578 "UTF-8", 682 "UTF-8",
579 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 683 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
684 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
685 IDR_SEARCH_ENGINE_LOGO_BING,
580 3, 686 3,
581 }; 687 };
582 688
583 const PrepopulatedEngine bing_it_IT = { 689 const PrepopulatedEngine bing_it_IT = {
584 L"Bing", 690 L"Bing",
585 L"bing.com", 691 L"bing.com",
586 "http://www.bing.com/s/wlflag.ico", 692 "http://www.bing.com/s/wlflag.ico",
587 L"http://www.bing.com/search?setmkt=it-IT&q={searchTerms}", 693 L"http://www.bing.com/search?setmkt=it-IT&q={searchTerms}",
588 "UTF-8", 694 "UTF-8",
589 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 695 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
696 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
697 IDR_SEARCH_ENGINE_LOGO_BING,
590 3, 698 3,
591 }; 699 };
592 700
593 const PrepopulatedEngine bing_ja_JP = { 701 const PrepopulatedEngine bing_ja_JP = {
594 L"Bing", 702 L"Bing",
595 L"bing.com", 703 L"bing.com",
596 "http://www.bing.com/s/wlflag.ico", 704 "http://www.bing.com/s/wlflag.ico",
597 L"http://www.bing.com/search?setmkt=ja-JP&q={searchTerms}", 705 L"http://www.bing.com/search?setmkt=ja-JP&q={searchTerms}",
598 "UTF-8", 706 "UTF-8",
599 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 707 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
708 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
709 IDR_SEARCH_ENGINE_LOGO_BING,
600 3, 710 3,
601 }; 711 };
602 712
603 const PrepopulatedEngine bing_ko_KR = { 713 const PrepopulatedEngine bing_ko_KR = {
604 L"Bing", 714 L"Bing",
605 L"bing.com", 715 L"bing.com",
606 "http://www.bing.com/s/wlflag.ico", 716 "http://www.bing.com/s/wlflag.ico",
607 L"http://www.bing.com/search?setmkt=ko-KR&q={searchTerms}", 717 L"http://www.bing.com/search?setmkt=ko-KR&q={searchTerms}",
608 "UTF-8", 718 "UTF-8",
609 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 719 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
720 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
721 IDR_SEARCH_ENGINE_LOGO_BING,
610 3, 722 3,
611 }; 723 };
612 724
613 const PrepopulatedEngine bing_lt_LT = { 725 const PrepopulatedEngine bing_lt_LT = {
614 L"Bing", 726 L"Bing",
615 L"bing.com", 727 L"bing.com",
616 "http://www.bing.com/s/wlflag.ico", 728 "http://www.bing.com/s/wlflag.ico",
617 L"http://www.bing.com/search?setmkt=lt-LT&q={searchTerms}", 729 L"http://www.bing.com/search?setmkt=lt-LT&q={searchTerms}",
618 "UTF-8", 730 "UTF-8",
619 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 731 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
732 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
733 IDR_SEARCH_ENGINE_LOGO_BING,
620 3, 734 3,
621 }; 735 };
622 736
623 const PrepopulatedEngine bing_lv_LV = { 737 const PrepopulatedEngine bing_lv_LV = {
624 L"Bing", 738 L"Bing",
625 L"bing.com", 739 L"bing.com",
626 "http://www.bing.com/s/wlflag.ico", 740 "http://www.bing.com/s/wlflag.ico",
627 L"http://www.bing.com/search?setmkt=lv-LV&q={searchTerms}", 741 L"http://www.bing.com/search?setmkt=lv-LV&q={searchTerms}",
628 "UTF-8", 742 "UTF-8",
629 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 743 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
744 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
745 IDR_SEARCH_ENGINE_LOGO_BING,
630 3, 746 3,
631 }; 747 };
632 748
633 const PrepopulatedEngine bing_nb_NO = { 749 const PrepopulatedEngine bing_nb_NO = {
634 L"Bing", 750 L"Bing",
635 L"bing.com", 751 L"bing.com",
636 "http://www.bing.com/s/wlflag.ico", 752 "http://www.bing.com/s/wlflag.ico",
637 L"http://www.bing.com/search?setmkt=nb-NO&q={searchTerms}", 753 L"http://www.bing.com/search?setmkt=nb-NO&q={searchTerms}",
638 "UTF-8", 754 "UTF-8",
639 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 755 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
756 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
757 IDR_SEARCH_ENGINE_LOGO_BING,
640 3, 758 3,
641 }; 759 };
642 760
643 const PrepopulatedEngine bing_nl_BE = { 761 const PrepopulatedEngine bing_nl_BE = {
644 L"Bing", 762 L"Bing",
645 L"bing.com", 763 L"bing.com",
646 "http://www.bing.com/s/wlflag.ico", 764 "http://www.bing.com/s/wlflag.ico",
647 L"http://www.bing.com/search?setmkt=nl-BE&q={searchTerms}", 765 L"http://www.bing.com/search?setmkt=nl-BE&q={searchTerms}",
648 "UTF-8", 766 "UTF-8",
649 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 767 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
768 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
769 IDR_SEARCH_ENGINE_LOGO_BING,
650 3, 770 3,
651 }; 771 };
652 772
653 const PrepopulatedEngine bing_nl_NL = { 773 const PrepopulatedEngine bing_nl_NL = {
654 L"Bing", 774 L"Bing",
655 L"bing.com", 775 L"bing.com",
656 "http://www.bing.com/s/wlflag.ico", 776 "http://www.bing.com/s/wlflag.ico",
657 L"http://www.bing.com/search?setmkt=nl-NL&q={searchTerms}", 777 L"http://www.bing.com/search?setmkt=nl-NL&q={searchTerms}",
658 "UTF-8", 778 "UTF-8",
659 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 779 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
780 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
781 IDR_SEARCH_ENGINE_LOGO_BING,
660 3, 782 3,
661 }; 783 };
662 784
663 const PrepopulatedEngine bing_pl_PL = { 785 const PrepopulatedEngine bing_pl_PL = {
664 L"Bing", 786 L"Bing",
665 L"bing.com", 787 L"bing.com",
666 "http://www.bing.com/s/wlflag.ico", 788 "http://www.bing.com/s/wlflag.ico",
667 L"http://www.bing.com/search?setmkt=pl-PL&q={searchTerms}", 789 L"http://www.bing.com/search?setmkt=pl-PL&q={searchTerms}",
668 "UTF-8", 790 "UTF-8",
669 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 791 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
792 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
793 IDR_SEARCH_ENGINE_LOGO_BING,
670 3, 794 3,
671 }; 795 };
672 796
673 const PrepopulatedEngine bing_pt_BR = { 797 const PrepopulatedEngine bing_pt_BR = {
674 L"Bing", 798 L"Bing",
675 L"bing.com", 799 L"bing.com",
676 "http://www.bing.com/s/wlflag.ico", 800 "http://www.bing.com/s/wlflag.ico",
677 L"http://www.bing.com/search?setmkt=pt-BR&q={searchTerms}", 801 L"http://www.bing.com/search?setmkt=pt-BR&q={searchTerms}",
678 "UTF-8", 802 "UTF-8",
679 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 803 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
804 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
805 IDR_SEARCH_ENGINE_LOGO_BING,
680 3, 806 3,
681 }; 807 };
682 808
683 const PrepopulatedEngine bing_pt_PT = { 809 const PrepopulatedEngine bing_pt_PT = {
684 L"Bing", 810 L"Bing",
685 L"bing.com", 811 L"bing.com",
686 "http://www.bing.com/s/wlflag.ico", 812 "http://www.bing.com/s/wlflag.ico",
687 L"http://www.bing.com/search?setmkt=pt-PT&q={searchTerms}", 813 L"http://www.bing.com/search?setmkt=pt-PT&q={searchTerms}",
688 "UTF-8", 814 "UTF-8",
689 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 815 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
816 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
817 IDR_SEARCH_ENGINE_LOGO_BING,
690 3, 818 3,
691 }; 819 };
692 820
693 const PrepopulatedEngine bing_ro_RO = { 821 const PrepopulatedEngine bing_ro_RO = {
694 L"Bing", 822 L"Bing",
695 L"bing.com", 823 L"bing.com",
696 "http://www.bing.com/s/wlflag.ico", 824 "http://www.bing.com/s/wlflag.ico",
697 L"http://www.bing.com/search?setmkt=ro-RO&q={searchTerms}", 825 L"http://www.bing.com/search?setmkt=ro-RO&q={searchTerms}",
698 "UTF-8", 826 "UTF-8",
699 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 827 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
828 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
829 IDR_SEARCH_ENGINE_LOGO_BING,
700 3, 830 3,
701 }; 831 };
702 832
703 const PrepopulatedEngine bing_ru_RU = { 833 const PrepopulatedEngine bing_ru_RU = {
704 L"Bing", 834 L"Bing",
705 L"bing.com", 835 L"bing.com",
706 "http://www.bing.com/s/wlflag.ico", 836 "http://www.bing.com/s/wlflag.ico",
707 L"http://www.bing.com/search?setmkt=ru-RU&q={searchTerms}", 837 L"http://www.bing.com/search?setmkt=ru-RU&q={searchTerms}",
708 "UTF-8", 838 "UTF-8",
709 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 839 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
840 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
841 IDR_SEARCH_ENGINE_LOGO_BING,
710 3, 842 3,
711 }; 843 };
712 844
713 const PrepopulatedEngine bing_sl_SI = { 845 const PrepopulatedEngine bing_sl_SI = {
714 L"Bing", 846 L"Bing",
715 L"bing.com", 847 L"bing.com",
716 "http://www.bing.com/s/wlflag.ico", 848 "http://www.bing.com/s/wlflag.ico",
717 L"http://www.bing.com/search?setmkt=sl-SI&q={searchTerms}", 849 L"http://www.bing.com/search?setmkt=sl-SI&q={searchTerms}",
718 "UTF-8", 850 "UTF-8",
719 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 851 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
852 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
853 IDR_SEARCH_ENGINE_LOGO_BING,
720 3, 854 3,
721 }; 855 };
722 856
723 const PrepopulatedEngine bing_sk_SK = { 857 const PrepopulatedEngine bing_sk_SK = {
724 L"Bing", 858 L"Bing",
725 L"bing.com", 859 L"bing.com",
726 "http://www.bing.com/s/wlflag.ico", 860 "http://www.bing.com/s/wlflag.ico",
727 L"http://www.bing.com/search?setmkt=sk-SK&q={searchTerms}", 861 L"http://www.bing.com/search?setmkt=sk-SK&q={searchTerms}",
728 "UTF-8", 862 "UTF-8",
729 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 863 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
864 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
865 IDR_SEARCH_ENGINE_LOGO_BING,
730 3, 866 3,
731 }; 867 };
732 868
733 const PrepopulatedEngine bing_sv_SE = { 869 const PrepopulatedEngine bing_sv_SE = {
734 L"Bing", 870 L"Bing",
735 L"bing.com", 871 L"bing.com",
736 "http://www.bing.com/s/wlflag.ico", 872 "http://www.bing.com/s/wlflag.ico",
737 L"http://www.bing.com/search?setmkt=sv-SE&q={searchTerms}", 873 L"http://www.bing.com/search?setmkt=sv-SE&q={searchTerms}",
738 "UTF-8", 874 "UTF-8",
739 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 875 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
876 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
877 IDR_SEARCH_ENGINE_LOGO_BING,
740 3, 878 3,
741 }; 879 };
742 880
743 const PrepopulatedEngine bing_th_TH = { 881 const PrepopulatedEngine bing_th_TH = {
744 L"Bing", 882 L"Bing",
745 L"bing.com", 883 L"bing.com",
746 "http://www.bing.com/s/wlflag.ico", 884 "http://www.bing.com/s/wlflag.ico",
747 L"http://www.bing.com/search?setmkt=th-TH&q={searchTerms}", 885 L"http://www.bing.com/search?setmkt=th-TH&q={searchTerms}",
748 "UTF-8", 886 "UTF-8",
749 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 887 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
888 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
889 IDR_SEARCH_ENGINE_LOGO_BING,
750 3, 890 3,
751 }; 891 };
752 892
753 const PrepopulatedEngine bing_tr_TR = { 893 const PrepopulatedEngine bing_tr_TR = {
754 L"Bing", 894 L"Bing",
755 L"bing.com", 895 L"bing.com",
756 "http://www.bing.com/s/wlflag.ico", 896 "http://www.bing.com/s/wlflag.ico",
757 L"http://www.bing.com/search?setmkt=tr-TR&q={searchTerms}", 897 L"http://www.bing.com/search?setmkt=tr-TR&q={searchTerms}",
758 "UTF-8", 898 "UTF-8",
759 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 899 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
900 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
901 IDR_SEARCH_ENGINE_LOGO_BING,
760 3, 902 3,
761 }; 903 };
762 904
763 const PrepopulatedEngine bing_uk_UA = { 905 const PrepopulatedEngine bing_uk_UA = {
764 L"Bing", 906 L"Bing",
765 L"bing.com", 907 L"bing.com",
766 "http://www.bing.com/s/wlflag.ico", 908 "http://www.bing.com/s/wlflag.ico",
767 L"http://www.bing.com/search?setmkt=uk-UA&q={searchTerms}", 909 L"http://www.bing.com/search?setmkt=uk-UA&q={searchTerms}",
768 "UTF-8", 910 "UTF-8",
769 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 911 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
912 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
913 IDR_SEARCH_ENGINE_LOGO_BING,
770 3, 914 3,
771 }; 915 };
772 916
773 const PrepopulatedEngine bing_zh_CN = { 917 const PrepopulatedEngine bing_zh_CN = {
774 L"Bing", 918 L"Bing",
775 L"bing.com", 919 L"bing.com",
776 "http://www.bing.com/s/wlflag.ico", 920 "http://www.bing.com/s/wlflag.ico",
777 L"http://www.bing.com/search?setmkt=zh-CN&q={searchTerms}", 921 L"http://www.bing.com/search?setmkt=zh-CN&q={searchTerms}",
778 "UTF-8", 922 "UTF-8",
779 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 923 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
924 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
925 IDR_SEARCH_ENGINE_LOGO_BING,
780 3, 926 3,
781 }; 927 };
782 928
783 const PrepopulatedEngine bing_zh_HK = { 929 const PrepopulatedEngine bing_zh_HK = {
784 L"Bing", 930 L"Bing",
785 L"bing.com", 931 L"bing.com",
786 "http://www.bing.com/s/wlflag.ico", 932 "http://www.bing.com/s/wlflag.ico",
787 L"http://www.bing.com/search?setmkt=zh-HK&q={searchTerms}", 933 L"http://www.bing.com/search?setmkt=zh-HK&q={searchTerms}",
788 "UTF-8", 934 "UTF-8",
789 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 935 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
936 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
937 IDR_SEARCH_ENGINE_LOGO_BING,
790 3, 938 3,
791 }; 939 };
792 940
793 const PrepopulatedEngine bing_zh_TW = { 941 const PrepopulatedEngine bing_zh_TW = {
794 L"Bing", 942 L"Bing",
795 L"bing.com", 943 L"bing.com",
796 "http://www.bing.com/s/wlflag.ico", 944 "http://www.bing.com/s/wlflag.ico",
797 L"http://www.bing.com/search?setmkt=zh-TW&q={searchTerms}", 945 L"http://www.bing.com/search?setmkt=zh-TW&q={searchTerms}",
798 "UTF-8", 946 "UTF-8",
799 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}", 947 L"http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}",
948 TemplateURLPrepopulateData::SEARCH_ENGINE_BING,
949 IDR_SEARCH_ENGINE_LOGO_BING,
800 3, 950 3,
801 }; 951 };
802 952
803 const PrepopulatedEngine centrum_cz = { 953 const PrepopulatedEngine centrum_cz = {
804 L"Centrum.cz", 954 L"Centrum.cz",
805 L"centrum.cz", 955 L"centrum.cz",
806 "http://img.centrum.cz/6/vy2/o/favicon.ico", 956 "http://img.centrum.cz/6/vy2/o/favicon.ico",
807 L"http://search.centrum.cz/index.php?charset={inputEncoding}&q={searchTerms}", 957 L"http://search.centrum.cz/index.php?charset={inputEncoding}&q={searchTerms}",
808 "UTF-8", 958 "UTF-8",
809 NULL, 959 NULL,
960 TemplateURLPrepopulateData::SEARCH_ENGINE_CENTRUM,
961 IDR_SEARCH_ENGINE_LOGO_CENTRUM,
810 26, 962 26,
811 }; 963 };
812 964
813 const PrepopulatedEngine centrum_sk = { 965 const PrepopulatedEngine centrum_sk = {
814 L"Centrum.sk", 966 L"Centrum.sk",
815 L"centrum.sk", 967 L"centrum.sk",
816 "http://img.centrum.sk/4/favicon.ico", 968 "http://img.centrum.sk/4/favicon.ico",
817 L"http://search.centrum.sk/index.php?charset={inputEncoding}&q={searchTerms}", 969 L"http://search.centrum.sk/index.php?charset={inputEncoding}&q={searchTerms}",
818 "UTF-8", 970 "UTF-8",
819 NULL, 971 NULL,
972 TemplateURLPrepopulateData::SEARCH_ENGINE_CENTRUM,
973 IDR_SEARCH_ENGINE_LOGO_CENTRUM,
820 26, 974 26,
821 }; 975 };
822 976
823 const PrepopulatedEngine daum = { 977 const PrepopulatedEngine daum = {
824 L"Daum", 978 L"Daum",
825 L"daum.net", 979 L"daum.net",
826 "http://search.daum.net/favicon.ico", 980 "http://search.daum.net/favicon.ico",
827 L"http://search.daum.net/search?q={searchTerms}", 981 L"http://search.daum.net/search?q={searchTerms}",
828 "EUC-KR", 982 "EUC-KR",
829 L"http://sug.search.daum.net/search_nsuggest?mod=fxjson&q={searchTerms}", 983 L"http://sug.search.daum.net/search_nsuggest?mod=fxjson&q={searchTerms}",
984 TemplateURLPrepopulateData::SEARCH_ENGINE_DAUM,
985 IDR_SEARCH_ENGINE_LOGO_DAUM,
830 68, 986 68,
831 }; 987 };
832 988
833 const PrepopulatedEngine delfi_lt = { 989 const PrepopulatedEngine delfi_lt = {
834 L"DELFI", 990 L"DELFI",
835 L"delfi.lt", 991 L"delfi.lt",
836 "http://search.delfi.lt/img/favicon.png", 992 "http://search.delfi.lt/img/favicon.png",
837 L"http://search.delfi.lt/search.php?q={searchTerms}", 993 L"http://search.delfi.lt/search.php?q={searchTerms}",
838 "UTF-8", 994 "UTF-8",
839 NULL, 995 NULL,
996 TemplateURLPrepopulateData::SEARCH_ENGINE_DELFI,
997 IDR_SEARCH_ENGINE_LOGO_DELFI,
840 45, 998 45,
841 }; 999 };
842 1000
843 const PrepopulatedEngine delfi_lv = { 1001 const PrepopulatedEngine delfi_lv = {
844 L"DELFI", 1002 L"DELFI",
845 L"delfi.lv", 1003 L"delfi.lv",
846 "http://smart.delfi.lv/img/smart_search.png", 1004 "http://smart.delfi.lv/img/smart_search.png",
847 L"http://smart.delfi.lv/i.php?enc={inputEncoding}&q={searchTerms}", 1005 L"http://smart.delfi.lv/i.php?enc={inputEncoding}&q={searchTerms}",
848 "UTF-8", 1006 "UTF-8",
849 NULL, 1007 NULL,
1008 TemplateURLPrepopulateData::SEARCH_ENGINE_DELFI,
1009 IDR_SEARCH_ENGINE_LOGO_DELFI,
850 45, 1010 45,
851 }; 1011 };
852 1012
853 const PrepopulatedEngine diri = { 1013 const PrepopulatedEngine diri = {
854 L"diri", 1014 L"diri",
855 L"diri.bg", 1015 L"diri.bg",
856 "http://i.dir.bg/diri/images/favicon.ico", 1016 "http://i.dir.bg/diri/images/favicon.ico",
857 L"http://diri.bg/search.php?textfield={searchTerms}", 1017 L"http://diri.bg/search.php?textfield={searchTerms}",
858 "windows-1251", 1018 "windows-1251",
859 NULL, 1019 NULL,
1020 TemplateURLPrepopulateData::SEARCH_ENGINE_DIRI,
1021 IDR_SEARCH_ENGINE_LOGO_DIRI,
860 32, 1022 32,
861 }; 1023 };
862 1024
863 const PrepopulatedEngine eniro_fi = { 1025 const PrepopulatedEngine eniro_fi = {
864 L"Eniro", 1026 L"Eniro",
865 L"eniro.fi", 1027 L"eniro.fi",
866 "http://eniro.fi/favicon.ico", 1028 "http://eniro.fi/favicon.ico",
867 L"http://eniro.fi/query?search_word={searchTerms}&what=web_local", 1029 L"http://eniro.fi/query?search_word={searchTerms}&what=web_local",
868 "ISO-8859-1", 1030 "ISO-8859-1",
869 NULL, 1031 NULL,
1032 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1033 IDR_SEARCH_ENGINE_LOGO_OTHER,
870 29, 1034 29,
871 }; 1035 };
872 1036
873 const PrepopulatedEngine eniro_se = { 1037 const PrepopulatedEngine eniro_se = {
874 L"Eniro", 1038 L"Eniro",
875 L"eniro.se", 1039 L"eniro.se",
876 "http://eniro.se/favicon.ico", 1040 "http://eniro.se/favicon.ico",
877 L"http://eniro.se/query?search_word={searchTerms}&what=web_local", 1041 L"http://eniro.se/query?search_word={searchTerms}&what=web_local",
878 "ISO-8859-1", 1042 "ISO-8859-1",
879 NULL, 1043 NULL,
1044 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1045 IDR_SEARCH_ENGINE_LOGO_OTHER,
880 29, 1046 29,
881 }; 1047 };
882 1048
883 const PrepopulatedEngine fonecta_02_fi = { 1049 const PrepopulatedEngine fonecta_02_fi = {
884 L"Fonecta 02.fi", 1050 L"Fonecta 02.fi",
885 L"www.fi", 1051 L"www.fi",
886 "http://www.02.fi/img/favicon.ico", 1052 "http://www.02.fi/img/favicon.ico",
887 L"http://www.02.fi/haku/{searchTerms}", 1053 L"http://www.02.fi/haku/{searchTerms}",
888 "UTF-8", 1054 "UTF-8",
889 NULL, 1055 NULL,
1056 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1057 IDR_SEARCH_ENGINE_LOGO_OTHER,
890 46, 1058 46,
891 }; 1059 };
892 1060
893 const PrepopulatedEngine go = { 1061 const PrepopulatedEngine go = {
894 L"GO.com", 1062 L"GO.com",
895 L"go.com", 1063 L"go.com",
896 "http://search.yahoo.com/favicon.ico", 1064 "http://search.yahoo.com/favicon.ico",
897 L"http://search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}&" 1065 L"http://search.yahoo.com/search?ei={inputEncoding}&p={searchTerms}&"
898 L"fr=hsusgo1", 1066 L"fr=hsusgo1",
899 "ISO-8859-1", 1067 "ISO-8859-1",
900 NULL, 1068 NULL,
1069 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1070 IDR_SEARCH_ENGINE_LOGO_OTHER,
901 40, 1071 40,
902 }; 1072 };
903 1073
904 const PrepopulatedEngine goo = { 1074 const PrepopulatedEngine goo = {
905 L"goo", 1075 L"goo",
906 L"search.goo.ne.jp", 1076 L"search.goo.ne.jp",
907 "http://goo.ne.jp/favicon.ico", 1077 "http://goo.ne.jp/favicon.ico",
908 L"http://search.goo.ne.jp/web.jsp?MT={searchTerms}&IE={inputEncoding}", 1078 L"http://search.goo.ne.jp/web.jsp?MT={searchTerms}&IE={inputEncoding}",
909 "UTF-8", 1079 "UTF-8",
910 NULL, 1080 NULL,
1081 TemplateURLPrepopulateData::SEARCH_ENGINE_GOO,
1082 IDR_SEARCH_ENGINE_LOGO_GOO,
911 23, 1083 23,
912 }; 1084 };
913 1085
914 const PrepopulatedEngine google = { 1086 const PrepopulatedEngine google = {
915 L"Google", 1087 L"Google",
916 NULL, 1088 NULL,
917 "http://www.google.com/favicon.ico", 1089 "http://www.google.com/favicon.ico",
918 L"{google:baseURL}search?{google:RLZ}{google:acceptedSuggestion}" 1090 L"{google:baseURL}search?{google:RLZ}{google:acceptedSuggestion}"
919 L"{google:originalQueryForSuggestion}sourceid=chrome&ie={inputEncoding}&" 1091 L"{google:originalQueryForSuggestion}sourceid=chrome&ie={inputEncoding}&"
920 L"q={searchTerms}", 1092 L"q={searchTerms}",
921 "UTF-8", 1093 "UTF-8",
922 L"{google:baseSuggestURL}search?client=chrome&hl={language}&q={searchTerms}", 1094 L"{google:baseSuggestURL}search?client=chrome&hl={language}&q={searchTerms}",
1095 TemplateURLPrepopulateData::SEARCH_ENGINE_GOOGLE,
1096 IDR_SEARCH_ENGINE_LOGO_GOOGLE,
923 1, 1097 1,
924 }; 1098 };
925 1099
926 const PrepopulatedEngine guruji = { 1100 const PrepopulatedEngine guruji = {
927 L"guruji", 1101 L"guruji",
928 L"guruji.com", 1102 L"guruji.com",
929 "http://guruji.com/favicon.ico", 1103 "http://guruji.com/favicon.ico",
930 L"http://guruji.com/search?q={searchTerms}", 1104 L"http://guruji.com/search?q={searchTerms}",
931 "UTF-8", 1105 "UTF-8",
932 NULL, 1106 NULL,
1107 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1108 IDR_SEARCH_ENGINE_LOGO_OTHER,
933 38, 1109 38,
934 }; 1110 };
935 1111
936 const PrepopulatedEngine hispavista = { 1112 const PrepopulatedEngine hispavista = {
937 L"hispavista", 1113 L"hispavista",
938 L"hispavista.com", 1114 L"hispavista.com",
939 "http://buscar.hispavista.com/favicon.ico", 1115 "http://buscar.hispavista.com/favicon.ico",
940 L"http://buscar.hispavista.com/?cadena={searchTerms}", 1116 L"http://buscar.hispavista.com/?cadena={searchTerms}",
941 "iso-8859-1", 1117 "iso-8859-1",
942 NULL, 1118 NULL,
1119 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1120 IDR_SEARCH_ENGINE_LOGO_OTHER,
943 18, 1121 18,
944 }; 1122 };
945 1123
946 const PrepopulatedEngine in = { 1124 const PrepopulatedEngine in = {
947 L"in.gr", 1125 L"in.gr",
948 L"in.gr", 1126 L"in.gr",
949 "http://www.in.gr/favicon.ico", 1127 "http://www.in.gr/favicon.ico",
950 L"http://find.in.gr/result.asp?q={searchTerms}", 1128 L"http://find.in.gr/result.asp?q={searchTerms}",
951 "ISO-8859-7", 1129 "ISO-8859-7",
952 NULL, 1130 NULL,
1131 TemplateURLPrepopulateData::SEARCH_ENGINE_IN,
1132 IDR_SEARCH_ENGINE_LOGO_IN,
953 54, 1133 54,
954 }; 1134 };
955 1135
956 const PrepopulatedEngine jabse = { 1136 const PrepopulatedEngine jabse = {
957 L"Jabse", 1137 L"Jabse",
958 L"jabse.com", 1138 L"jabse.com",
959 "http://www.jabse.com/favicon.ico", 1139 "http://www.jabse.com/favicon.ico",
960 L"http://www.jabse.com/searchmachine.php?query={searchTerms}", 1140 L"http://www.jabse.com/searchmachine.php?query={searchTerms}",
961 "UTF-8", 1141 "UTF-8",
962 NULL, 1142 NULL,
1143 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1144 IDR_SEARCH_ENGINE_LOGO_OTHER,
963 19, 1145 19,
964 }; 1146 };
965 1147
966 const PrepopulatedEngine jubii = { 1148 const PrepopulatedEngine jubii = {
967 L"Jubii", 1149 L"Jubii",
968 L"jubii.dk", 1150 L"jubii.dk",
969 "http://search.jubii.dk/favicon_jubii.ico", 1151 "http://search.jubii.dk/favicon_jubii.ico",
970 L"http://search.jubii.dk/cgi-bin/pursuit?query={searchTerms}", 1152 L"http://search.jubii.dk/cgi-bin/pursuit?query={searchTerms}",
971 "ISO-8859-1", 1153 "ISO-8859-1",
972 NULL, 1154 NULL,
1155 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1156 IDR_SEARCH_ENGINE_LOGO_OTHER,
973 28, 1157 28,
974 }; 1158 };
975 1159
976 const PrepopulatedEngine kvasir = { 1160 const PrepopulatedEngine kvasir = {
977 L"Kvasir", 1161 L"Kvasir",
978 L"kvasir.no", 1162 L"kvasir.no",
979 "http://www.kvasir.no/img/favicon.ico", 1163 "http://www.kvasir.no/img/favicon.ico",
980 L"http://www.kvasir.no/nettsok/searchResult.html?searchExpr={searchTerms}", 1164 L"http://www.kvasir.no/nettsok/searchResult.html?searchExpr={searchTerms}",
981 "ISO-8859-1", 1165 "ISO-8859-1",
982 NULL, 1166 NULL,
1167 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1168 IDR_SEARCH_ENGINE_LOGO_OTHER,
983 73, 1169 73,
984 }; 1170 };
985 1171
986 const PrepopulatedEngine latne = { 1172 const PrepopulatedEngine latne = {
987 L"LATNE", 1173 L"LATNE",
988 L"latne.lv", 1174 L"latne.lv",
989 "http://latne.lv/favicon.ico", 1175 "http://latne.lv/favicon.ico",
990 L"http://latne.lv/siets.php?q={searchTerms}", 1176 L"http://latne.lv/siets.php?q={searchTerms}",
991 "UTF-8", 1177 "UTF-8",
992 NULL, 1178 NULL,
1179 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1180 IDR_SEARCH_ENGINE_LOGO_OTHER,
993 71, 1181 71,
994 }; 1182 };
995 1183
996 const PrepopulatedEngine leit = { 1184 const PrepopulatedEngine leit = {
997 L"leit.is", 1185 L"leit.is",
998 L"leit.is", 1186 L"leit.is",
999 "http://leit.is/leit.ico", 1187 "http://leit.is/leit.ico",
1000 L"http://leit.is/query.aspx?qt={searchTerms}", 1188 L"http://leit.is/query.aspx?qt={searchTerms}",
1001 "ISO-8859-1", 1189 "ISO-8859-1",
1002 NULL, 1190 NULL,
1191 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1192 IDR_SEARCH_ENGINE_LOGO_OTHER,
1003 59, 1193 59,
1004 }; 1194 };
1005 1195
1006 const PrepopulatedEngine libero = { 1196 const PrepopulatedEngine libero = {
1007 L"Libero", 1197 L"Libero",
1008 L"libero.it", 1198 L"libero.it",
1009 "http://arianna.libero.it/favicon.ico", 1199 "http://arianna.libero.it/favicon.ico",
1010 L"http://arianna.libero.it/search/abin/integrata.cgi?query={searchTerms}", 1200 L"http://arianna.libero.it/search/abin/integrata.cgi?query={searchTerms}",
1011 "ISO-8859-1", 1201 "ISO-8859-1",
1012 NULL, 1202 NULL,
1203 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1204 IDR_SEARCH_ENGINE_LOGO_OTHER,
1013 63, 1205 63,
1014 }; 1206 };
1015 1207
1016 const PrepopulatedEngine mail_ru = { 1208 const PrepopulatedEngine mail_ru = {
1017 L"@MAIL.RU", 1209 L"@MAIL.RU",
1018 L"mail.ru", 1210 L"mail.ru",
1019 "http://img.go.mail.ru/favicon.ico", 1211 "http://img.go.mail.ru/favicon.ico",
1020 L"http://go.mail.ru/search?q={searchTerms}", 1212 L"http://go.mail.ru/search?q={searchTerms}",
1021 "windows-1251", 1213 "windows-1251",
1022 NULL, 1214 NULL,
1215 TemplateURLPrepopulateData::SEARCH_ENGINE_MAILRU,
1216 IDR_SEARCH_ENGINE_LOGO_MAILRU,
1023 83, 1217 83,
1024 }; 1218 };
1025 1219
1026 const PrepopulatedEngine maktoob = { 1220 const PrepopulatedEngine maktoob = {
1027 L"\x0645\x0643\x062a\x0648\x0628", 1221 L"\x0645\x0643\x062a\x0648\x0628",
1028 L"maktoob.com", 1222 L"maktoob.com",
1029 "http://www.maktoob.com/favicon.ico", 1223 "http://www.maktoob.com/favicon.ico",
1030 L"http://www.maktoob.com/searchResult.php?q={searchTerms}", 1224 L"http://www.maktoob.com/searchResult.php?q={searchTerms}",
1031 "UTF-8", 1225 "UTF-8",
1032 NULL, 1226 NULL,
1227 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1228 IDR_SEARCH_ENGINE_LOGO_OTHER,
1033 13, 1229 13,
1034 }; 1230 };
1035 1231
1036 const PrepopulatedEngine masrawy = { 1232 const PrepopulatedEngine masrawy = {
1037 L"\x0645\x0635\x0631\x0627\x0648\x064a", 1233 L"\x0645\x0635\x0631\x0627\x0648\x064a",
1038 L"masrawy.com", 1234 L"masrawy.com",
1039 "http://www.masrawy.com/new/images/masrawy.ico", 1235 "http://www.masrawy.com/new/images/masrawy.ico",
1040 L"http://masrawy.com/new/search.aspx?sr={searchTerms}", 1236 L"http://masrawy.com/new/search.aspx?sr={searchTerms}",
1041 "windows-1256", 1237 "windows-1256",
1042 NULL, 1238 NULL,
1239 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1240 IDR_SEARCH_ENGINE_LOGO_OTHER,
1043 14, 1241 14,
1044 }; 1242 };
1045 1243
1046 const PrepopulatedEngine mynet = { 1244 const PrepopulatedEngine mynet = {
1047 L"MYNET", 1245 L"MYNET",
1048 L"mynet.com", 1246 L"mynet.com",
1049 "http://img.mynet.com/mynetfavori.ico", 1247 "http://img.mynet.com/mynetfavori.ico",
1050 L"http://arama.mynet.com/search.aspx?q={searchTerms}&pg=q", 1248 L"http://arama.mynet.com/search.aspx?q={searchTerms}&pg=q",
1051 "windows-1254", 1249 "windows-1254",
1052 NULL, 1250 NULL,
1251 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1252 IDR_SEARCH_ENGINE_LOGO_OTHER,
1053 101, 1253 101,
1054 }; 1254 };
1055 1255
1056 const PrepopulatedEngine najdi = { 1256 const PrepopulatedEngine najdi = {
1057 L"Najdi.si", 1257 L"Najdi.si",
1058 L"najdi.si", 1258 L"najdi.si",
1059 "http://www.najdi.si/master/favicon.ico", 1259 "http://www.najdi.si/master/favicon.ico",
1060 L"http://www.najdi.si/search.jsp?q={searchTerms}", 1260 L"http://www.najdi.si/search.jsp?q={searchTerms}",
1061 "UTF-8", 1261 "UTF-8",
1062 NULL, 1262 NULL,
1263 TemplateURLPrepopulateData::SEARCH_ENGINE_NAJDI,
1264 IDR_SEARCH_ENGINE_LOGO_NAJDI,
1063 87, 1265 87,
1064 }; 1266 };
1065 1267
1066 const PrepopulatedEngine nate = { 1268 const PrepopulatedEngine nate = {
1067 L"\xb124\xc774\xd2b8\xb2f7\xcef4", 1269 L"\xb124\xc774\xd2b8\xb2f7\xcef4",
1068 L"nate.com", 1270 L"nate.com",
1069 "http://nate.search.empas.com/favicon.ico", 1271 "http://nate.search.empas.com/favicon.ico",
1070 L"http://nate.search.empas.com/search/all.html?q={searchTerms}", 1272 L"http://nate.search.empas.com/search/all.html?q={searchTerms}",
1071 "EUC-KR", 1273 "EUC-KR",
1072 NULL, 1274 NULL,
1275 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1276 IDR_SEARCH_ENGINE_LOGO_OTHER,
1073 69, 1277 69,
1074 }; 1278 };
1075 1279
1076 const PrepopulatedEngine naver = { 1280 const PrepopulatedEngine naver = {
1077 L"\xb124\xc774\xbc84", 1281 L"\xb124\xc774\xbc84",
1078 L"naver.com", 1282 L"naver.com",
1079 "http://search.naver.com/favicon.ico", 1283 "http://search.naver.com/favicon.ico",
1080 L"http://search.naver.com/search.naver?ie={inputEncoding}" 1284 L"http://search.naver.com/search.naver?ie={inputEncoding}"
1081 L"&query={searchTerms}", 1285 L"&query={searchTerms}",
1082 "UTF-8", 1286 "UTF-8",
1083 L"http://ac.search.naver.com/autocompl?m=s&ie={inputEncoding}&oe=utf-8&" 1287 L"http://ac.search.naver.com/autocompl?m=s&ie={inputEncoding}&oe=utf-8&"
1084 L"q={searchTerms}", 1288 L"q={searchTerms}",
1289 TemplateURLPrepopulateData::SEARCH_ENGINE_NAVER,
1290 IDR_SEARCH_ENGINE_LOGO_NAVER,
1085 67, 1291 67,
1086 }; 1292 };
1087 1293
1088 const PrepopulatedEngine neti = { 1294 const PrepopulatedEngine neti = {
1089 L"NETI", 1295 L"NETI",
1090 L"neti.ee", 1296 L"neti.ee",
1091 "http://www.neti.ee/favicon.ico", 1297 "http://www.neti.ee/favicon.ico",
1092 L"http://www.neti.ee/cgi-bin/otsing?query={searchTerms}", 1298 L"http://www.neti.ee/cgi-bin/otsing?query={searchTerms}",
1093 "ISO-8859-1", 1299 "ISO-8859-1",
1094 NULL, 1300 NULL,
1301 TemplateURLPrepopulateData::SEARCH_ENGINE_NETI,
1302 IDR_SEARCH_ENGINE_LOGO_NETI,
1095 44, 1303 44,
1096 }; 1304 };
1097 1305
1098 const PrepopulatedEngine netsprint = { 1306 const PrepopulatedEngine netsprint = {
1099 L"NetSprint", 1307 L"NetSprint",
1100 L"netsprint.pl", 1308 L"netsprint.pl",
1101 "http://netsprint.pl/favicon.ico", 1309 "http://netsprint.pl/favicon.ico",
1102 L"http://www.netsprint.pl/serwis/search?q={searchTerms}", 1310 L"http://www.netsprint.pl/serwis/search?q={searchTerms}",
1103 "UTF-8", 1311 "UTF-8",
1104 NULL, 1312 NULL,
1313 TemplateURLPrepopulateData::SEARCH_ENGINE_NETSPRINT,
1314 IDR_SEARCH_ENGINE_LOGO_NETSPRINT,
1105 30, 1315 30,
1106 }; 1316 };
1107 1317
1108 const PrepopulatedEngine nur_kz = { 1318 const PrepopulatedEngine nur_kz = {
1109 L"NUR.KZ", 1319 L"NUR.KZ",
1110 L"nur.kz", 1320 L"nur.kz",
1111 "http://www.nur.kz/favicon_kz.ico", 1321 "http://www.nur.kz/favicon_kz.ico",
1112 L"http://search.nur.kz/?encoding={inputEncoding}&query={searchTerms}", 1322 L"http://search.nur.kz/?encoding={inputEncoding}&query={searchTerms}",
1113 "UTF-8", 1323 "UTF-8",
1114 NULL, 1324 NULL,
1325 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1326 IDR_SEARCH_ENGINE_LOGO_OTHER,
1115 20, 1327 20,
1116 }; 1328 };
1117 1329
1118 const PrepopulatedEngine ok = { 1330 const PrepopulatedEngine ok = {
1119 L"OK.hu", 1331 L"OK.hu",
1120 L"ok.hu", 1332 L"ok.hu",
1121 "http://ok.hu/gfx/favicon.ico", 1333 "http://ok.hu/gfx/favicon.ico",
1122 L"http://ok.hu/katalogus?q={searchTerms}", 1334 L"http://ok.hu/katalogus?q={searchTerms}",
1123 "ISO-8859-2", 1335 "ISO-8859-2",
1124 NULL, 1336 NULL,
1337 TemplateURLPrepopulateData::SEARCH_ENGINE_OK,
1338 IDR_SEARCH_ENGINE_LOGO_OK,
1125 6, 1339 6,
1126 }; 1340 };
1127 1341
1128 const PrepopulatedEngine onet = { 1342 const PrepopulatedEngine onet = {
1129 L"Onet.pl", 1343 L"Onet.pl",
1130 L"onet.pl", 1344 L"onet.pl",
1131 "http://szukaj.onet.pl/favicon.ico", 1345 "http://szukaj.onet.pl/favicon.ico",
1132 L"http://szukaj.onet.pl/query.html?qt={searchTerms}", 1346 L"http://szukaj.onet.pl/query.html?qt={searchTerms}",
1133 "ISO-8859-2", 1347 "ISO-8859-2",
1134 NULL, 1348 NULL,
1349 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1350 IDR_SEARCH_ENGINE_LOGO_OTHER,
1135 75, 1351 75,
1136 }; 1352 };
1137 1353
1138 const PrepopulatedEngine pogodak_ba = { 1354 const PrepopulatedEngine pogodak_ba = {
1139 L"Pogodak!", 1355 L"Pogodak!",
1140 L"pogodak.ba", 1356 L"pogodak.ba",
1141 "http://www.pogodak.ba/favicon.ico", 1357 "http://www.pogodak.ba/favicon.ico",
1142 L"http://www.pogodak.ba/search.jsp?q={searchTerms}", 1358 L"http://www.pogodak.ba/search.jsp?q={searchTerms}",
1143 "UTF-8", 1359 "UTF-8",
1144 NULL, 1360 NULL,
1361 TemplateURLPrepopulateData::SEARCH_ENGINE_POGODAK,
1362 IDR_SEARCH_ENGINE_LOGO_POGODAK,
1145 24, 1363 24,
1146 }; 1364 };
1147 1365
1148 const PrepopulatedEngine pogodak_hr = { 1366 const PrepopulatedEngine pogodak_hr = {
1149 L"Pogodak!", 1367 L"Pogodak!",
1150 L"pogodak.hr", 1368 L"pogodak.hr",
1151 "http://www.pogodak.hr/favicon.ico", 1369 "http://www.pogodak.hr/favicon.ico",
1152 L"http://www.pogodak.hr/search.jsp?q={searchTerms}", 1370 L"http://www.pogodak.hr/search.jsp?q={searchTerms}",
1153 "UTF-8", 1371 "UTF-8",
1154 NULL, 1372 NULL,
1373 TemplateURLPrepopulateData::SEARCH_ENGINE_POGODAK,
1374 IDR_SEARCH_ENGINE_LOGO_POGODAK,
1155 24, 1375 24,
1156 }; 1376 };
1157 1377
1158 const PrepopulatedEngine pogodak_rs = { 1378 const PrepopulatedEngine pogodak_rs = {
1159 L"Pogodak!", 1379 L"Pogodak!",
1160 L"pogodak.rs", 1380 L"pogodak.rs",
1161 "http://www.pogodak.rs/favicon.ico", 1381 "http://www.pogodak.rs/favicon.ico",
1162 L"http://www.pogodak.rs/search.jsp?q={searchTerms}", 1382 L"http://www.pogodak.rs/search.jsp?q={searchTerms}",
1163 "UTF-8", 1383 "UTF-8",
1164 NULL, 1384 NULL,
1385 TemplateURLPrepopulateData::SEARCH_ENGINE_POGODAK,
1386 IDR_SEARCH_ENGINE_LOGO_POGODAK,
1165 24, 1387 24,
1166 }; 1388 };
1167 1389
1168 const PrepopulatedEngine pogodok = { 1390 const PrepopulatedEngine pogodok = {
1169 L"\x041f\x043e\x0433\x043e\x0434\x043e\x043a!", 1391 L"\x041f\x043e\x0433\x043e\x0434\x043e\x043a!",
1170 L"pogodok.com.mk", 1392 L"pogodok.com.mk",
1171 "http://www.pogodok.com.mk/favicon.ico", 1393 "http://www.pogodok.com.mk/favicon.ico",
1172 L"http://www.pogodok.com.mk/search.jsp?q={searchTerms}", 1394 L"http://www.pogodok.com.mk/search.jsp?q={searchTerms}",
1173 "UTF-8", 1395 "UTF-8",
1174 NULL, 1396 NULL,
1397 TemplateURLPrepopulateData::SEARCH_ENGINE_POGODOK_MK,
1398 IDR_SEARCH_ENGINE_LOGO_POGODOK_MK,
1175 24, // Really the same engine as Pogodak, just has a small name change. 1399 24, // Really the same engine as Pogodak, just has a small name change.
1176 }; 1400 };
1177 1401
1178 const PrepopulatedEngine rambler = { 1402 const PrepopulatedEngine rambler = {
1179 L"Rambler", 1403 L"Rambler",
1180 L"rambler.ru", 1404 L"rambler.ru",
1181 "http://www.rambler.ru/favicon.ico", 1405 "http://www.rambler.ru/favicon.ico",
1182 L"http://www.rambler.ru/srch?words={searchTerms}", 1406 L"http://www.rambler.ru/srch?words={searchTerms}",
1183 "windows-1251", 1407 "windows-1251",
1184 NULL, 1408 NULL,
1409 TemplateURLPrepopulateData::SEARCH_ENGINE_RAMBLER,
1410 IDR_SEARCH_ENGINE_LOGO_RAMBLER,
1185 16, 1411 16,
1186 }; 1412 };
1187 1413
1188 const PrepopulatedEngine rediff = { 1414 const PrepopulatedEngine rediff = {
1189 L"Rediff", 1415 L"Rediff",
1190 L"rediff.com", 1416 L"rediff.com",
1191 "http://search1.rediff.com/favicon.ico", 1417 "http://search1.rediff.com/favicon.ico",
1192 L"http://search1.rediff.com/dirsrch/default.asp?MT={searchTerms}", 1418 L"http://search1.rediff.com/dirsrch/default.asp?MT={searchTerms}",
1193 "UTF-8", 1419 "UTF-8",
1194 NULL, 1420 NULL,
1421 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1422 IDR_SEARCH_ENGINE_LOGO_OTHER,
1195 37, 1423 37,
1196 }; 1424 };
1197 1425
1198 const PrepopulatedEngine rednano = { 1426 const PrepopulatedEngine rednano = {
1199 L"Rednano", 1427 L"Rednano",
1200 L"rednano.sg", 1428 L"rednano.sg",
1201 "http://rednano.sg/favicon.ico", 1429 "http://rednano.sg/favicon.ico",
1202 L"http://rednano.sg/sfe/lwi.action?querystring={searchTerms}", 1430 L"http://rednano.sg/sfe/lwi.action?querystring={searchTerms}",
1203 "UTF-8", 1431 "UTF-8",
1204 NULL, 1432 NULL,
1433 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1434 IDR_SEARCH_ENGINE_LOGO_OTHER,
1205 41, 1435 41,
1206 }; 1436 };
1207 1437
1208 const PrepopulatedEngine sanook = { 1438 const PrepopulatedEngine sanook = {
1209 L"\x0e2a\x0e19\x0e38\x0e01!", 1439 L"\x0e2a\x0e19\x0e38\x0e01!",
1210 L"sanook.com", 1440 L"sanook.com",
1211 "http://search.sanook.com/favicon.ico", 1441 "http://search.sanook.com/favicon.ico",
1212 L"http://search.sanook.com/search.php?q={searchTerms}", 1442 L"http://search.sanook.com/search.php?q={searchTerms}",
1213 "UTF-8", 1443 "UTF-8",
1214 NULL, 1444 NULL,
1445 TemplateURLPrepopulateData::SEARCH_ENGINE_SANOOK,
1446 IDR_SEARCH_ENGINE_LOGO_SANOOK,
1215 100, 1447 100,
1216 }; 1448 };
1217 1449
1218 const PrepopulatedEngine sapo = { 1450 const PrepopulatedEngine sapo = {
1219 L"SAPO", 1451 L"SAPO",
1220 L"sapo.pt", 1452 L"sapo.pt",
1221 "http://imgs.sapo.pt/images/sapo.ico", 1453 "http://imgs.sapo.pt/images/sapo.ico",
1222 L"http://pesquisa.sapo.pt/?q={searchTerms}", 1454 L"http://pesquisa.sapo.pt/?q={searchTerms}",
1223 "UTF-8", 1455 "UTF-8",
1224 L"http://pesquisa.sapo.pt/livesapo?q={searchTerms}", 1456 L"http://pesquisa.sapo.pt/livesapo?q={searchTerms}",
1457 TemplateURLPrepopulateData::SEARCH_ENGINE_SAPO,
1458 IDR_SEARCH_ENGINE_LOGO_SAPO,
1225 77, 1459 77,
1226 }; 1460 };
1227 1461
1228 const PrepopulatedEngine search_de_CH = { 1462 const PrepopulatedEngine search_de_CH = {
1229 L"search.ch", 1463 L"search.ch",
1230 L"search.ch", 1464 L"search.ch",
1231 "http://www.search.ch/favicon.ico", 1465 "http://www.search.ch/favicon.ico",
1232 L"http://www.search.ch/index.de.html?q={searchTerms}", 1466 L"http://www.search.ch/index.de.html?q={searchTerms}",
1233 "ISO-8859-1", 1467 "ISO-8859-1",
1234 NULL, 1468 NULL,
1469 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1470 IDR_SEARCH_ENGINE_LOGO_OTHER,
1235 51, 1471 51,
1236 }; 1472 };
1237 1473
1238 const PrepopulatedEngine search_fr_CH = { 1474 const PrepopulatedEngine search_fr_CH = {
1239 L"search.ch", 1475 L"search.ch",
1240 L"", // search.ch is taken by search_de_CH. 1476 L"", // search.ch is taken by search_de_CH.
1241 "http://www.search.ch/favicon.ico", 1477 "http://www.search.ch/favicon.ico",
1242 L"http://www.search.ch/index.fr.html?q={searchTerms}", 1478 L"http://www.search.ch/index.fr.html?q={searchTerms}",
1243 "ISO-8859-1", 1479 "ISO-8859-1",
1244 NULL, 1480 NULL,
1481 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1482 IDR_SEARCH_ENGINE_LOGO_OTHER,
1245 22, 1483 22,
1246 }; 1484 };
1247 1485
1248 const PrepopulatedEngine seznam = { 1486 const PrepopulatedEngine seznam = {
1249 L"Seznam", 1487 L"Seznam",
1250 L"seznam.cz", 1488 L"seznam.cz",
1251 "http://1.im.cz/szn/img/favicon.ico", 1489 "http://1.im.cz/szn/img/favicon.ico",
1252 L"http://search.seznam.cz/?q={searchTerms}", 1490 L"http://search.seznam.cz/?q={searchTerms}",
1253 "UTF-8", 1491 "UTF-8",
1254 L"http:///suggest.fulltext.seznam.cz/?dict=fulltext_ff&phrase={searchTerms}&" 1492 L"http:///suggest.fulltext.seznam.cz/?dict=fulltext_ff&phrase={searchTerms}&"
1255 L"encoding={inputEncoding}&response_encoding=utf-8", 1493 L"encoding={inputEncoding}&response_encoding=utf-8",
1494 TemplateURLPrepopulateData::SEARCH_ENGINE_SEZNAM,
1495 IDR_SEARCH_ENGINE_LOGO_SEZNAM,
1256 25, 1496 25,
1257 }; 1497 };
1258 1498
1259 const PrepopulatedEngine spray = { 1499 const PrepopulatedEngine spray = {
1260 L"Spray", 1500 L"Spray",
1261 L"spray.se", 1501 L"spray.se",
1262 "http://www.eniro.se/favicon.ico", 1502 "http://www.eniro.se/favicon.ico",
1263 L"http://www.eniro.se/query?ax=spray&search_word={searchTerms}&what=web", 1503 L"http://www.eniro.se/query?ax=spray&search_word={searchTerms}&what=web",
1264 "ISO-8859-1", 1504 "ISO-8859-1",
1265 NULL, 1505 NULL,
1506 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1507 IDR_SEARCH_ENGINE_LOGO_OTHER,
1266 99, 1508 99,
1267 }; 1509 };
1268 1510
1269 const PrepopulatedEngine terra_ar = { 1511 const PrepopulatedEngine terra_ar = {
1270 L"Terra Argentina", 1512 L"Terra Argentina",
1271 L"terra.com.ar", 1513 L"terra.com.ar",
1272 "http://buscar.terra.com.ar/favicon.ico", 1514 "http://buscar.terra.com.ar/favicon.ico",
1273 L"http://buscar.terra.com.ar/Default.aspx?query={searchTerms}&source=Search", 1515 L"http://buscar.terra.com.ar/Default.aspx?query={searchTerms}&source=Search",
1274 "ISO-8859-1", 1516 "ISO-8859-1",
1275 NULL, 1517 NULL,
1518 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1519 IDR_SEARCH_ENGINE_LOGO_OTHER,
1276 90, 1520 90,
1277 }; 1521 };
1278 1522
1279 const PrepopulatedEngine terra_es = { 1523 const PrepopulatedEngine terra_es = {
1280 L"Terra", 1524 L"Terra",
1281 L"terra.es", 1525 L"terra.es",
1282 "http://buscador.terra.es/favicon.ico", 1526 "http://buscador.terra.es/favicon.ico",
1283 L"http://buscador.terra.es/Default.aspx?query={searchTerms}&source=Search", 1527 L"http://buscador.terra.es/Default.aspx?query={searchTerms}&source=Search",
1284 "ISO-8859-1", 1528 "ISO-8859-1",
1285 NULL, 1529 NULL,
1530 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1531 IDR_SEARCH_ENGINE_LOGO_OTHER,
1286 90, 1532 90,
1287 }; 1533 };
1288 1534
1289 const PrepopulatedEngine tut = { 1535 const PrepopulatedEngine tut = {
1290 L"TUT.BY", 1536 L"TUT.BY",
1291 L"tut.by", 1537 L"tut.by",
1292 "http://www.tut.by/favicon.ico", 1538 "http://www.tut.by/favicon.ico",
1293 L"http://search.tut.by/?query={searchTerms}", 1539 L"http://search.tut.by/?query={searchTerms}",
1294 "windows-1251", 1540 "windows-1251",
1295 NULL, 1541 NULL,
1542 TemplateURLPrepopulateData::SEARCH_ENGINE_TUT,
1543 IDR_SEARCH_ENGINE_LOGO_TUT,
1296 17, 1544 17,
1297 }; 1545 };
1298 1546
1299 const PrepopulatedEngine uol = { 1547 const PrepopulatedEngine uol = {
1300 L"UOL Busca", 1548 L"UOL Busca",
1301 L"busca.uol.com.br", 1549 L"busca.uol.com.br",
1302 "http://busca.uol.com.br/favicon.ico", 1550 "http://busca.uol.com.br/favicon.ico",
1303 L"http://busca.uol.com.br/www/index.html?q={searchTerms}", 1551 L"http://busca.uol.com.br/www/index.html?q={searchTerms}",
1304 "ISO-8859-1", 1552 "ISO-8859-1",
1305 NULL, 1553 NULL,
1554 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1555 IDR_SEARCH_ENGINE_LOGO_OTHER,
1306 82, 1556 82,
1307 }; 1557 };
1308 1558
1309 const PrepopulatedEngine virgilio = { 1559 const PrepopulatedEngine virgilio = {
1310 L"Virgilio", 1560 L"Virgilio",
1311 L"virgilio.it", 1561 L"virgilio.it",
1312 "http://ricerca.alice.it/favicon.ico", 1562 "http://ricerca.alice.it/favicon.ico",
1313 L"http://ricerca.alice.it/ricerca?qs={searchTerms}", 1563 L"http://ricerca.alice.it/ricerca?qs={searchTerms}",
1314 "ISO-8859-1", 1564 "ISO-8859-1",
1315 NULL, 1565 NULL,
1566 TemplateURLPrepopulateData::SEARCH_ENGINE_VIRGILIO,
1567 IDR_SEARCH_ENGINE_LOGO_VIRGILIO,
1316 62, 1568 62,
1317 }; 1569 };
1318 1570
1319 const PrepopulatedEngine walla = { 1571 const PrepopulatedEngine walla = {
1320 L"\x05d5\x05d5\x05d0\x05dc\x05d4!", 1572 L"\x05d5\x05d5\x05d0\x05dc\x05d4!",
1321 L"walla.co.il", 1573 L"walla.co.il",
1322 "http://www.walla.co.il/favicon.ico", 1574 "http://www.walla.co.il/favicon.ico",
1323 L"http://search.walla.co.il/?e=hew&q={searchTerms}", 1575 L"http://search.walla.co.il/?e=hew&q={searchTerms}",
1324 "windows-1255", 1576 "windows-1255",
1325 NULL, 1577 NULL,
1578 TemplateURLPrepopulateData::SEARCH_ENGINE_WALLA,
1579 IDR_SEARCH_ENGINE_LOGO_WALLA,
1326 55, 1580 55,
1327 }; 1581 };
1328 1582
1329 const PrepopulatedEngine wp = { 1583 const PrepopulatedEngine wp = {
1330 L"Wirtualna Polska", 1584 L"Wirtualna Polska",
1331 L"wp.pl", 1585 L"wp.pl",
1332 "http://szukaj.wp.pl/favicon.ico", 1586 "http://szukaj.wp.pl/favicon.ico",
1333 L"http://szukaj.wp.pl/szukaj.html?szukaj={searchTerms}", 1587 L"http://szukaj.wp.pl/szukaj.html?szukaj={searchTerms}",
1334 "ISO-8859-2", 1588 "ISO-8859-2",
1335 NULL, 1589 NULL,
1590 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
1591 IDR_SEARCH_ENGINE_LOGO_OTHER,
1336 76, 1592 76,
1337 }; 1593 };
1338 1594
1339 const PrepopulatedEngine yahoo = { 1595 const PrepopulatedEngine yahoo = {
1340 L"Yahoo!", 1596 L"Yahoo!",
1341 L"yahoo.com", 1597 L"yahoo.com",
1342 "http://search.yahoo.com/favicon.ico", 1598 "http://search.yahoo.com/favicon.ico",
1343 L"http://search.yahoo.com/search?ei={inputEncoding}&fr=crmas&p={searchTerms}", 1599 L"http://search.yahoo.com/search?ei={inputEncoding}&fr=crmas&p={searchTerms}",
1344 "UTF-8", 1600 "UTF-8",
1345 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}", 1601 L"http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}",
1602 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1603 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1346 2, 1604 2,
1347 }; 1605 };
1348 1606
1349 // For regional Yahoo variants without region-specific suggestion service, 1607 // For regional Yahoo variants without region-specific suggestion service,
1350 // suggestion is disabled. For some of them, we might consider 1608 // suggestion is disabled. For some of them, we might consider
1351 // using a fallback (e.g. de for at/ch, ca or fr for qc, en for nl, no, hk). 1609 // using a fallback (e.g. de for at/ch, ca or fr for qc, en for nl, no, hk).
1352 const PrepopulatedEngine yahoo_ar = { 1610 const PrepopulatedEngine yahoo_ar = {
1353 L"Yahoo! Argentina", 1611 L"Yahoo! Argentina",
1354 L"ar.yahoo.com", 1612 L"ar.yahoo.com",
1355 "http://ar.search.yahoo.com/favicon.ico", 1613 "http://ar.search.yahoo.com/favicon.ico",
1356 L"http://ar.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1614 L"http://ar.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1357 L"p={searchTerms}", 1615 L"p={searchTerms}",
1358 "UTF-8", 1616 "UTF-8",
1359 L"http://ar-sayt.ff.search.yahoo.com/gossip-ar-sayt?output=fxjson&" 1617 L"http://ar-sayt.ff.search.yahoo.com/gossip-ar-sayt?output=fxjson&"
1360 L"command={searchTerms}", 1618 L"command={searchTerms}",
1619 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1620 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1361 2, 1621 2,
1362 }; 1622 };
1363 1623
1364 const PrepopulatedEngine yahoo_at = { 1624 const PrepopulatedEngine yahoo_at = {
1365 L"Yahoo! Suche", 1625 L"Yahoo! Suche",
1366 L"at.yahoo.com", 1626 L"at.yahoo.com",
1367 "http://at.search.yahoo.com/favicon.ico", 1627 "http://at.search.yahoo.com/favicon.ico",
1368 L"http://at.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1628 L"http://at.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1369 L"p={searchTerms}", 1629 L"p={searchTerms}",
1370 "UTF-8", 1630 "UTF-8",
1371 NULL, 1631 NULL,
1632 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1633 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1372 2, 1634 2,
1373 }; 1635 };
1374 1636
1375 const PrepopulatedEngine yahoo_au = { 1637 const PrepopulatedEngine yahoo_au = {
1376 L"Yahoo!7", 1638 L"Yahoo!7",
1377 L"au.yahoo.com", 1639 L"au.yahoo.com",
1378 "http://au.search.yahoo.com/favicon.ico", 1640 "http://au.search.yahoo.com/favicon.ico",
1379 L"http://au.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1641 L"http://au.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1380 L"p={searchTerms}", 1642 L"p={searchTerms}",
1381 "UTF-8", 1643 "UTF-8",
1382 L"http://aue-sayt.ff.search.yahoo.com/gossip-au-sayt?output=fxjson&" 1644 L"http://aue-sayt.ff.search.yahoo.com/gossip-au-sayt?output=fxjson&"
1383 L"command={searchTerms}", 1645 L"command={searchTerms}",
1646 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1647 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1384 2, 1648 2,
1385 }; 1649 };
1386 1650
1387 const PrepopulatedEngine yahoo_br = { 1651 const PrepopulatedEngine yahoo_br = {
1388 L"Yahoo! Brasil", 1652 L"Yahoo! Brasil",
1389 L"br.yahoo.com", 1653 L"br.yahoo.com",
1390 "http://br.search.yahoo.com/favicon.ico", 1654 "http://br.search.yahoo.com/favicon.ico",
1391 L"http://br.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1655 L"http://br.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1392 L"p={searchTerms}", 1656 L"p={searchTerms}",
1393 "UTF-8", 1657 "UTF-8",
1394 L"http://br-sayt.ff.search.yahoo.com/gossip-br-sayt?output=fxjson&" 1658 L"http://br-sayt.ff.search.yahoo.com/gossip-br-sayt?output=fxjson&"
1395 L"command={searchTerms}", 1659 L"command={searchTerms}",
1660 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1661 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1396 2, 1662 2,
1397 }; 1663 };
1398 1664
1399 const PrepopulatedEngine yahoo_ca = { 1665 const PrepopulatedEngine yahoo_ca = {
1400 L"Yahoo! Canada", 1666 L"Yahoo! Canada",
1401 L"ca.yahoo.com", 1667 L"ca.yahoo.com",
1402 "http://ca.search.yahoo.com/favicon.ico", 1668 "http://ca.search.yahoo.com/favicon.ico",
1403 L"http://ca.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1669 L"http://ca.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1404 L"p={searchTerms}", 1670 L"p={searchTerms}",
1405 "UTF-8", 1671 "UTF-8",
1406 L"http://gossip.ca.yahoo.com/gossip-ca-sayt?output=fxjsonp&" 1672 L"http://gossip.ca.yahoo.com/gossip-ca-sayt?output=fxjsonp&"
1407 L"command={searchTerms}", 1673 L"command={searchTerms}",
1674 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1675 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1408 2, 1676 2,
1409 }; 1677 };
1410 1678
1411 const PrepopulatedEngine yahoo_ch = { 1679 const PrepopulatedEngine yahoo_ch = {
1412 L"Yahoo! Suche", 1680 L"Yahoo! Suche",
1413 L"ch.yahoo.com", 1681 L"ch.yahoo.com",
1414 "http://ch.search.yahoo.com/favicon.ico", 1682 "http://ch.search.yahoo.com/favicon.ico",
1415 L"http://ch.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1683 L"http://ch.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1416 L"p={searchTerms}", 1684 L"p={searchTerms}",
1417 "UTF-8", 1685 "UTF-8",
1418 NULL, 1686 NULL,
1687 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1688 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1419 2, 1689 2,
1420 }; 1690 };
1421 1691
1422 const PrepopulatedEngine yahoo_cl = { 1692 const PrepopulatedEngine yahoo_cl = {
1423 L"Yahoo! Chile", 1693 L"Yahoo! Chile",
1424 L"cl.yahoo.com", 1694 L"cl.yahoo.com",
1425 "http://cl.search.yahoo.com/favicon.ico", 1695 "http://cl.search.yahoo.com/favicon.ico",
1426 L"http://cl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1696 L"http://cl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1427 L"p={searchTerms}", 1697 L"p={searchTerms}",
1428 "UTF-8", 1698 "UTF-8",
1429 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&" 1699 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1430 L"command={searchTerms}", 1700 L"command={searchTerms}",
1701 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1702 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1431 2, 1703 2,
1432 }; 1704 };
1433 1705
1434 const PrepopulatedEngine yahoo_cn = { 1706 const PrepopulatedEngine yahoo_cn = {
1435 L"\x4e2d\x56fd\x96c5\x864e", 1707 L"\x4e2d\x56fd\x96c5\x864e",
1436 L"cn.yahoo.com", 1708 L"cn.yahoo.com",
1437 "http://search.cn.yahoo.com/favicon.ico", 1709 "http://search.cn.yahoo.com/favicon.ico",
1438 L"http://search.cn.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1710 L"http://search.cn.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1439 L"p={searchTerms}", 1711 L"p={searchTerms}",
1440 "GB2312", 1712 "GB2312",
1441 // http://cn.yahoo.com/cnsuggestion/suggestion.inc.php?of=fxjson&query= 1713 // http://cn.yahoo.com/cnsuggestion/suggestion.inc.php?of=fxjson&query=
1442 // returns in a proprietary format ('|' delimeted word list). 1714 // returns in a proprietary format ('|' delimeted word list).
1443 NULL, 1715 NULL,
1716 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1717 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1444 2, 1718 2,
1445 }; 1719 };
1446 1720
1447 const PrepopulatedEngine yahoo_co = { 1721 const PrepopulatedEngine yahoo_co = {
1448 L"Yahoo! Colombia", 1722 L"Yahoo! Colombia",
1449 L"co.yahoo.com", 1723 L"co.yahoo.com",
1450 "http://co.search.yahoo.com/favicon.ico", 1724 "http://co.search.yahoo.com/favicon.ico",
1451 L"http://co.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1725 L"http://co.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1452 L"p={searchTerms}", 1726 L"p={searchTerms}",
1453 "UTF-8", 1727 "UTF-8",
1454 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&" 1728 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1455 L"command={searchTerms}", 1729 L"command={searchTerms}",
1730 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1731 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1456 2, 1732 2,
1457 }; 1733 };
1458 1734
1459 const PrepopulatedEngine yahoo_de = { 1735 const PrepopulatedEngine yahoo_de = {
1460 L"Yahoo! Deutschland", 1736 L"Yahoo! Deutschland",
1461 L"de.yahoo.com", 1737 L"de.yahoo.com",
1462 "http://de.search.yahoo.com/favicon.ico", 1738 "http://de.search.yahoo.com/favicon.ico",
1463 L"http://de.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1739 L"http://de.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1464 L"p={searchTerms}", 1740 L"p={searchTerms}",
1465 "UTF-8", 1741 "UTF-8",
1466 L"http://de-sayt.ff.search.yahoo.com/gossip-de-sayt?output=fxjson&" 1742 L"http://de-sayt.ff.search.yahoo.com/gossip-de-sayt?output=fxjson&"
1467 L"command={searchTerms}", 1743 L"command={searchTerms}",
1744 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1745 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1468 2, 1746 2,
1469 }; 1747 };
1470 1748
1471 const PrepopulatedEngine yahoo_dk = { 1749 const PrepopulatedEngine yahoo_dk = {
1472 L"Yahoo! Danmark", 1750 L"Yahoo! Danmark",
1473 L"dk.yahoo.com", 1751 L"dk.yahoo.com",
1474 "http://dk.search.yahoo.com/favicon.ico", 1752 "http://dk.search.yahoo.com/favicon.ico",
1475 L"http://dk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1753 L"http://dk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1476 L"p={searchTerms}", 1754 L"p={searchTerms}",
1477 "UTF-8", 1755 "UTF-8",
1478 NULL, 1756 NULL,
1757 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1758 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1479 2, 1759 2,
1480 }; 1760 };
1481 1761
1482 const PrepopulatedEngine yahoo_es = { 1762 const PrepopulatedEngine yahoo_es = {
1483 L"Yahoo! Espa" L"\x00f1" L"a", 1763 L"Yahoo! Espa" L"\x00f1" L"a",
1484 L"es.yahoo.com", 1764 L"es.yahoo.com",
1485 "http://es.search.yahoo.com/favicon.ico", 1765 "http://es.search.yahoo.com/favicon.ico",
1486 L"http://es.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1766 L"http://es.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1487 L"p={searchTerms}", 1767 L"p={searchTerms}",
1488 "UTF-8", 1768 "UTF-8",
1489 L"http://es-sayt.ff.search.yahoo.com/gossip-es-sayt?output=fxjson&" 1769 L"http://es-sayt.ff.search.yahoo.com/gossip-es-sayt?output=fxjson&"
1490 L"command={searchTerms}", 1770 L"command={searchTerms}",
1771 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1772 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1491 2, 1773 2,
1492 }; 1774 };
1493 1775
1494 const PrepopulatedEngine yahoo_fi = { 1776 const PrepopulatedEngine yahoo_fi = {
1495 L"Yahoo!-haku", 1777 L"Yahoo!-haku",
1496 L"fi.yahoo.com", 1778 L"fi.yahoo.com",
1497 "http://fi.search.yahoo.com/favicon.ico", 1779 "http://fi.search.yahoo.com/favicon.ico",
1498 L"http://fi.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1780 L"http://fi.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1499 L"p={searchTerms}", 1781 L"p={searchTerms}",
1500 "UTF-8", 1782 "UTF-8",
1501 NULL, 1783 NULL,
1784 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1785 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1502 2, 1786 2,
1503 }; 1787 };
1504 1788
1505 const PrepopulatedEngine yahoo_fr = { 1789 const PrepopulatedEngine yahoo_fr = {
1506 L"Yahoo! France", 1790 L"Yahoo! France",
1507 L"fr.yahoo.com", 1791 L"fr.yahoo.com",
1508 "http://fr.search.yahoo.com/favicon.ico", 1792 "http://fr.search.yahoo.com/favicon.ico",
1509 L"http://fr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1793 L"http://fr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1510 L"p={searchTerms}", 1794 L"p={searchTerms}",
1511 "UTF-8", 1795 "UTF-8",
1512 L"http://fr-sayt.ff.search.yahoo.com/gossip-fr-sayt?output=fxjson&" 1796 L"http://fr-sayt.ff.search.yahoo.com/gossip-fr-sayt?output=fxjson&"
1513 L"command={searchTerms}", 1797 L"command={searchTerms}",
1798 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1799 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1514 2, 1800 2,
1515 }; 1801 };
1516 1802
1517 const PrepopulatedEngine yahoo_hk = { 1803 const PrepopulatedEngine yahoo_hk = {
1518 L"Yahoo! Hong Kong", 1804 L"Yahoo! Hong Kong",
1519 L"hk.yahoo.com", 1805 L"hk.yahoo.com",
1520 "http://hk.search.yahoo.com/favicon.ico", 1806 "http://hk.search.yahoo.com/favicon.ico",
1521 L"http://hk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1807 L"http://hk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1522 L"p={searchTerms}", 1808 L"p={searchTerms}",
1523 "UTF-8", 1809 "UTF-8",
1524 // http://history.hk.search.yahoo.com/ac/ac_msearch.php?query={searchTerms} 1810 // http://history.hk.search.yahoo.com/ac/ac_msearch.php?query={searchTerms}
1525 // returns a JSON with key-value pairs. Setting parameters (ot, of, output) 1811 // returns a JSON with key-value pairs. Setting parameters (ot, of, output)
1526 // to fxjson, json, or js doesn't help. 1812 // to fxjson, json, or js doesn't help.
1527 NULL, 1813 NULL,
1814 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1815 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1528 2, 1816 2,
1529 }; 1817 };
1530 1818
1531 const PrepopulatedEngine yahoo_id = { 1819 const PrepopulatedEngine yahoo_id = {
1532 L"Yahoo! Indonesia", 1820 L"Yahoo! Indonesia",
1533 L"id.yahoo.com", 1821 L"id.yahoo.com",
1534 "http://id.search.yahoo.com/favicon.ico", 1822 "http://id.search.yahoo.com/favicon.ico",
1535 L"http://id.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1823 L"http://id.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1536 L"p={searchTerms}", 1824 L"p={searchTerms}",
1537 "UTF-8", 1825 "UTF-8",
1538 L"http://id-sayt.ff.search.yahoo.com/gossip-id-sayt?output=fxjson&" 1826 L"http://id-sayt.ff.search.yahoo.com/gossip-id-sayt?output=fxjson&"
1539 L"command={searchTerms}", 1827 L"command={searchTerms}",
1828 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1829 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1540 2, 1830 2,
1541 }; 1831 };
1542 1832
1543 const PrepopulatedEngine yahoo_in = { 1833 const PrepopulatedEngine yahoo_in = {
1544 L"Yahoo! India", 1834 L"Yahoo! India",
1545 L"in.yahoo.com", 1835 L"in.yahoo.com",
1546 "http://in.search.yahoo.com/favicon.ico", 1836 "http://in.search.yahoo.com/favicon.ico",
1547 L"http://in.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1837 L"http://in.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1548 L"p={searchTerms}", 1838 L"p={searchTerms}",
1549 "UTF-8", 1839 "UTF-8",
1550 L"http://in-sayt.ff.search.yahoo.com/gossip-in-sayt?output=fxjson&" 1840 L"http://in-sayt.ff.search.yahoo.com/gossip-in-sayt?output=fxjson&"
1551 L"command={searchTerms}", 1841 L"command={searchTerms}",
1842 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1843 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1552 2, 1844 2,
1553 }; 1845 };
1554 1846
1555 const PrepopulatedEngine yahoo_it = { 1847 const PrepopulatedEngine yahoo_it = {
1556 L"Yahoo! Italia", 1848 L"Yahoo! Italia",
1557 L"it.yahoo.com", 1849 L"it.yahoo.com",
1558 "http://it.search.yahoo.com/favicon.ico", 1850 "http://it.search.yahoo.com/favicon.ico",
1559 L"http://it.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1851 L"http://it.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1560 L"p={searchTerms}", 1852 L"p={searchTerms}",
1561 "UTF-8", 1853 "UTF-8",
1562 L"http://it-sayt.ff.search.yahoo.com/gossip-it-sayt?output=fxjson&" 1854 L"http://it-sayt.ff.search.yahoo.com/gossip-it-sayt?output=fxjson&"
1563 L"command={searchTerms}", 1855 L"command={searchTerms}",
1856 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1857 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1564 2, 1858 2,
1565 }; 1859 };
1566 1860
1567 const PrepopulatedEngine yahoo_jp = { 1861 const PrepopulatedEngine yahoo_jp = {
1568 L"Yahoo! JAPAN", 1862 L"Yahoo! JAPAN",
1569 L"yahoo.co.jp", 1863 L"yahoo.co.jp",
1570 "http://search.yahoo.co.jp/favicon.ico", 1864 "http://search.yahoo.co.jp/favicon.ico",
1571 L"http://search.yahoo.co.jp/search?ei={inputEncoding}&fr=crmas&" 1865 L"http://search.yahoo.co.jp/search?ei={inputEncoding}&fr=crmas&"
1572 L"p={searchTerms}", 1866 L"p={searchTerms}",
1573 "UTF-8", 1867 "UTF-8",
1574 NULL, 1868 NULL,
1869 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOOJP,
1870 IDR_SEARCH_ENGINE_LOGO_YAHOOJP,
1575 2, 1871 2,
1576 }; 1872 };
1577 1873
1578 const PrepopulatedEngine yahoo_kr = { 1874 const PrepopulatedEngine yahoo_kr = {
1579 L"\xc57c\xd6c4! \xcf54\xb9ac\xc544", 1875 L"\xc57c\xd6c4! \xcf54\xb9ac\xc544",
1580 L"kr.yahoo.com", 1876 L"kr.yahoo.com",
1581 "http://kr.search.yahoo.com/favicon.ico", 1877 "http://kr.search.yahoo.com/favicon.ico",
1582 L"http://kr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1878 L"http://kr.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1583 L"p={searchTerms}", 1879 L"p={searchTerms}",
1584 "UTF-8", 1880 "UTF-8",
1585 L"http://kr.atc.search.yahoo.com/atcx.php?property=main&ot=fxjson&" 1881 L"http://kr.atc.search.yahoo.com/atcx.php?property=main&ot=fxjson&"
1586 L"ei=utf8&eo=utf8&command={searchTerms}", 1882 L"ei=utf8&eo=utf8&command={searchTerms}",
1883 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1884 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1587 2, 1885 2,
1588 }; 1886 };
1589 1887
1590 const PrepopulatedEngine yahoo_malaysia = { 1888 const PrepopulatedEngine yahoo_malaysia = {
1591 L"Yahoo! Malaysia", 1889 L"Yahoo! Malaysia",
1592 L"malaysia.yahoo.com", 1890 L"malaysia.yahoo.com",
1593 "http://malaysia.search.yahoo.com/favicon.ico", 1891 "http://malaysia.search.yahoo.com/favicon.ico",
1594 L"http://malaysia.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1892 L"http://malaysia.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1595 L"p={searchTerms}", 1893 L"p={searchTerms}",
1596 "UTF-8", 1894 "UTF-8",
1597 L"http://my-sayt.ff.search.yahoo.com/gossip-my-sayt?output=fxjson&" 1895 L"http://my-sayt.ff.search.yahoo.com/gossip-my-sayt?output=fxjson&"
1598 L"command={searchTerms}", 1896 L"command={searchTerms}",
1897 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1898 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1599 2, 1899 2,
1600 }; 1900 };
1601 1901
1602 const PrepopulatedEngine yahoo_mx = { 1902 const PrepopulatedEngine yahoo_mx = {
1603 L"Yahoo! M\x00e9xico", 1903 L"Yahoo! M\x00e9xico",
1604 L"mx.yahoo.com", 1904 L"mx.yahoo.com",
1605 "http://mx.search.yahoo.com/favicon.ico", 1905 "http://mx.search.yahoo.com/favicon.ico",
1606 L"http://mx.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1906 L"http://mx.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1607 L"p={searchTerms}", 1907 L"p={searchTerms}",
1608 "UTF-8", 1908 "UTF-8",
1609 L"http://gossip.mx.yahoo.com/gossip-mx-sayt?output=fxjsonp&" 1909 L"http://gossip.mx.yahoo.com/gossip-mx-sayt?output=fxjsonp&"
1610 L"command={searchTerms}", 1910 L"command={searchTerms}",
1911 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1912 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1611 2, 1913 2,
1612 }; 1914 };
1613 1915
1614 const PrepopulatedEngine yahoo_nl = { 1916 const PrepopulatedEngine yahoo_nl = {
1615 L"Yahoo! Nederland", 1917 L"Yahoo! Nederland",
1616 L"nl.yahoo.com", 1918 L"nl.yahoo.com",
1617 "http://nl.search.yahoo.com/favicon.ico", 1919 "http://nl.search.yahoo.com/favicon.ico",
1618 L"http://nl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1920 L"http://nl.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1619 L"p={searchTerms}", 1921 L"p={searchTerms}",
1620 "UTF-8", 1922 "UTF-8",
1621 NULL, 1923 NULL,
1924 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1925 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1622 2, 1926 2,
1623 }; 1927 };
1624 1928
1625 const PrepopulatedEngine yahoo_no = { 1929 const PrepopulatedEngine yahoo_no = {
1626 L"Yahoo! Norge", 1930 L"Yahoo! Norge",
1627 L"no.yahoo.com", 1931 L"no.yahoo.com",
1628 "http://no.search.yahoo.com/favicon.ico", 1932 "http://no.search.yahoo.com/favicon.ico",
1629 L"http://no.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1933 L"http://no.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1630 L"p={searchTerms}", 1934 L"p={searchTerms}",
1631 "UTF-8", 1935 "UTF-8",
1632 NULL, 1936 NULL,
1937 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1938 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1633 2, 1939 2,
1634 }; 1940 };
1635 1941
1636 const PrepopulatedEngine yahoo_nz = { 1942 const PrepopulatedEngine yahoo_nz = {
1637 L"Yahoo!Xtra", 1943 L"Yahoo!Xtra",
1638 L"nz.yahoo.com", 1944 L"nz.yahoo.com",
1639 "http://nz.search.yahoo.com/favicon.ico", 1945 "http://nz.search.yahoo.com/favicon.ico",
1640 L"http://nz.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1946 L"http://nz.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1641 L"p={searchTerms}", 1947 L"p={searchTerms}",
1642 "UTF-8", 1948 "UTF-8",
1643 L"http://aue-sayt.ff.search.yahoo.com/gossip-nz-sayt?output=fxjson&" 1949 L"http://aue-sayt.ff.search.yahoo.com/gossip-nz-sayt?output=fxjson&"
1644 L"command={searchTerms}", 1950 L"command={searchTerms}",
1951 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1952 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1645 2, 1953 2,
1646 }; 1954 };
1647 1955
1648 const PrepopulatedEngine yahoo_pe = { 1956 const PrepopulatedEngine yahoo_pe = {
1649 L"Yahoo! Per\x00fa", 1957 L"Yahoo! Per\x00fa",
1650 L"pe.yahoo.com", 1958 L"pe.yahoo.com",
1651 "http://pe.search.yahoo.com/favicon.ico", 1959 "http://pe.search.yahoo.com/favicon.ico",
1652 L"http://pe.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1960 L"http://pe.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1653 L"p={searchTerms}", 1961 L"p={searchTerms}",
1654 "UTF-8", 1962 "UTF-8",
1655 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&" 1963 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1656 L"command={searchTerms}", 1964 L"command={searchTerms}",
1965 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1966 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1657 2, 1967 2,
1658 }; 1968 };
1659 1969
1660 const PrepopulatedEngine yahoo_ph = { 1970 const PrepopulatedEngine yahoo_ph = {
1661 L"Yahoo! Philippines", 1971 L"Yahoo! Philippines",
1662 L"ph.yahoo.com", 1972 L"ph.yahoo.com",
1663 "http://ph.search.yahoo.com/favicon.ico", 1973 "http://ph.search.yahoo.com/favicon.ico",
1664 L"http://ph.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1974 L"http://ph.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1665 L"p={searchTerms}", 1975 L"p={searchTerms}",
1666 "UTF-8", 1976 "UTF-8",
1667 L"http://ph-sayt.ff.search.yahoo.com/gossip-ph-sayt?output=fxjson&" 1977 L"http://ph-sayt.ff.search.yahoo.com/gossip-ph-sayt?output=fxjson&"
1668 L"command={searchTerms}", 1978 L"command={searchTerms}",
1979 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1980 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1669 2, 1981 2,
1670 }; 1982 };
1671 1983
1672 const PrepopulatedEngine yahoo_qc = { 1984 const PrepopulatedEngine yahoo_qc = {
1673 L"Yahoo! Qu" L"\x00e9" L"bec", 1985 L"Yahoo! Qu" L"\x00e9" L"bec",
1674 L"qc.yahoo.com", 1986 L"qc.yahoo.com",
1675 "http://qc.search.yahoo.com/favicon.ico", 1987 "http://qc.search.yahoo.com/favicon.ico",
1676 L"http://qc.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 1988 L"http://qc.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1677 L"p={searchTerms}", 1989 L"p={searchTerms}",
1678 "UTF-8", 1990 "UTF-8",
1679 NULL, 1991 NULL,
1992 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
1993 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1680 5, // Can't be 2 as this has to appear in the Canada list alongside yahoo_ca. 1994 5, // Can't be 2 as this has to appear in the Canada list alongside yahoo_ca.
1681 }; 1995 };
1682 1996
1683 const PrepopulatedEngine yahoo_ru = { 1997 const PrepopulatedEngine yahoo_ru = {
1684 L"Yahoo! \x043f\x043e-\x0440\x0443\x0441\x0441\x043a\x0438", 1998 L"Yahoo! \x043f\x043e-\x0440\x0443\x0441\x0441\x043a\x0438",
1685 L"ru.yahoo.com", 1999 L"ru.yahoo.com",
1686 "http://ru.search.yahoo.com/favicon.ico", 2000 "http://ru.search.yahoo.com/favicon.ico",
1687 L"http://ru.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2001 L"http://ru.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1688 L"p={searchTerms}", 2002 L"p={searchTerms}",
1689 "UTF-8", 2003 "UTF-8",
1690 NULL, 2004 NULL,
2005 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
2006 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1691 2, 2007 2,
1692 }; 2008 };
1693 2009
1694 const PrepopulatedEngine yahoo_se = { 2010 const PrepopulatedEngine yahoo_se = {
1695 L"Yahoo! Sverige", 2011 L"Yahoo! Sverige",
1696 L"se.yahoo.com", 2012 L"se.yahoo.com",
1697 "http://se.search.yahoo.com/favicon.ico", 2013 "http://se.search.yahoo.com/favicon.ico",
1698 L"http://se.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2014 L"http://se.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1699 L"p={searchTerms}", 2015 L"p={searchTerms}",
1700 "UTF-8", 2016 "UTF-8",
1701 NULL, 2017 NULL,
2018 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
2019 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1702 2, 2020 2,
1703 }; 2021 };
1704 2022
1705 const PrepopulatedEngine yahoo_sg = { 2023 const PrepopulatedEngine yahoo_sg = {
1706 L"Yahoo! Singapore", 2024 L"Yahoo! Singapore",
1707 L"sg.yahoo.com", 2025 L"sg.yahoo.com",
1708 "http://sg.search.yahoo.com/favicon.ico", 2026 "http://sg.search.yahoo.com/favicon.ico",
1709 L"http://sg.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2027 L"http://sg.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1710 L"p={searchTerms}", 2028 L"p={searchTerms}",
1711 "UTF-8", 2029 "UTF-8",
1712 L"http://sg-sayt.ff.search.yahoo.com/gossip-sg-sayt?output=fxjson&" 2030 L"http://sg-sayt.ff.search.yahoo.com/gossip-sg-sayt?output=fxjson&"
1713 L"command={searchTerms}", 2031 L"command={searchTerms}",
2032 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
2033 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1714 2, 2034 2,
1715 }; 2035 };
1716 2036
1717 const PrepopulatedEngine yahoo_th = { 2037 const PrepopulatedEngine yahoo_th = {
1718 L"Yahoo! \x0e1b\x0e23\x0e30\x0e40\x0e17\x0e28\x0e44\x0e17\x0e22", 2038 L"Yahoo! \x0e1b\x0e23\x0e30\x0e40\x0e17\x0e28\x0e44\x0e17\x0e22",
1719 L"th.yahoo.com", 2039 L"th.yahoo.com",
1720 "http://th.search.yahoo.com/favicon.ico", 2040 "http://th.search.yahoo.com/favicon.ico",
1721 L"http://th.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2041 L"http://th.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1722 L"p={searchTerms}", 2042 L"p={searchTerms}",
1723 "UTF-8", 2043 "UTF-8",
1724 L"http://th-sayt.ff.search.yahoo.com/gossip-th-sayt?output=fxjson&" 2044 L"http://th-sayt.ff.search.yahoo.com/gossip-th-sayt?output=fxjson&"
1725 L"command={searchTerms}", 2045 L"command={searchTerms}",
2046 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
2047 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1726 2, 2048 2,
1727 }; 2049 };
1728 2050
1729 const PrepopulatedEngine yahoo_tw = { 2051 const PrepopulatedEngine yahoo_tw = {
1730 L"Yahoo!\x5947\x6469", 2052 L"Yahoo!\x5947\x6469",
1731 L"tw.yahoo.com", 2053 L"tw.yahoo.com",
1732 "http://tw.search.yahoo.com/favicon.ico", 2054 "http://tw.search.yahoo.com/favicon.ico",
1733 L"http://tw.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2055 L"http://tw.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1734 L"p={searchTerms}", 2056 L"p={searchTerms}",
1735 "UTF-8", 2057 "UTF-8",
1736 // "http://tw.yahoo.com/ac/ac_search.php?eo=utf8&of=js&prop=web&query=" 2058 // "http://tw.yahoo.com/ac/ac_search.php?eo=utf8&of=js&prop=web&query="
1737 // returns a JSON file prepended with 'fxsearch=('. 2059 // returns a JSON file prepended with 'fxsearch=('.
1738 NULL, 2060 NULL,
2061 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
2062 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1739 2, 2063 2,
1740 }; 2064 };
1741 2065
1742 const PrepopulatedEngine yahoo_uk = { 2066 const PrepopulatedEngine yahoo_uk = {
1743 L"Yahoo! UK & Ireland", 2067 L"Yahoo! UK & Ireland",
1744 L"uk.yahoo.com", 2068 L"uk.yahoo.com",
1745 "http://uk.search.yahoo.com/favicon.ico", 2069 "http://uk.search.yahoo.com/favicon.ico",
1746 L"http://uk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2070 L"http://uk.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1747 L"p={searchTerms}", 2071 L"p={searchTerms}",
1748 "UTF-8", 2072 "UTF-8",
1749 L"http://uk-sayt.ff.search.yahoo.com/gossip-uk-sayt?output=fxjson&" 2073 L"http://uk-sayt.ff.search.yahoo.com/gossip-uk-sayt?output=fxjson&"
1750 L"command={searchTerms}", 2074 L"command={searchTerms}",
2075 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
2076 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1751 2, 2077 2,
1752 }; 2078 };
1753 2079
1754 const PrepopulatedEngine yahoo_ve = { 2080 const PrepopulatedEngine yahoo_ve = {
1755 L"Yahoo! Venezuela", 2081 L"Yahoo! Venezuela",
1756 L"ve.yahoo.com", 2082 L"ve.yahoo.com",
1757 "http://ve.search.yahoo.com/favicon.ico", 2083 "http://ve.search.yahoo.com/favicon.ico",
1758 L"http://ve.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2084 L"http://ve.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1759 L"p={searchTerms}", 2085 L"p={searchTerms}",
1760 "UTF-8", 2086 "UTF-8",
1761 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&" 2087 L"http://gossip.telemundo.yahoo.com/gossip-e1-sayt?output=fxjson&"
1762 L"command={searchTerms}", 2088 L"command={searchTerms}",
2089 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
2090 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1763 2, 2091 2,
1764 }; 2092 };
1765 2093
1766 const PrepopulatedEngine yahoo_vn = { 2094 const PrepopulatedEngine yahoo_vn = {
1767 L"Yahoo! Vi\x1ec7t Nam", 2095 L"Yahoo! Vi\x1ec7t Nam",
1768 L"vn.yahoo.com", 2096 L"vn.yahoo.com",
1769 "http://vn.search.yahoo.com/favicon.ico", 2097 "http://vn.search.yahoo.com/favicon.ico",
1770 L"http://vn.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&" 2098 L"http://vn.search.yahoo.com/search?ei={inputEncoding}&fr=crmas&"
1771 L"p={searchTerms}", 2099 L"p={searchTerms}",
1772 "UTF-8", 2100 "UTF-8",
1773 L"http://vn-sayt.ff.search.yahoo.com/gossip-vn-sayt?output=fxjson&" 2101 L"http://vn-sayt.ff.search.yahoo.com/gossip-vn-sayt?output=fxjson&"
1774 L"command={searchTerms}", 2102 L"command={searchTerms}",
2103 TemplateURLPrepopulateData::SEARCH_ENGINE_YAHOO,
2104 IDR_SEARCH_ENGINE_LOGO_YAHOO,
1775 2, 2105 2,
1776 }; 2106 };
1777 2107
1778 const PrepopulatedEngine yamli = { 2108 const PrepopulatedEngine yamli = {
1779 L"Yamli", 2109 L"Yamli",
1780 L"yamli.com", 2110 L"yamli.com",
1781 "http://www.yamli.com/favicon.ico", 2111 "http://www.yamli.com/favicon.ico",
1782 L"http://www.yamli.com/#q={searchTerms}", 2112 L"http://www.yamli.com/#q={searchTerms}",
1783 "UTF-8", 2113 "UTF-8",
1784 NULL, 2114 NULL,
2115 TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER,
2116 IDR_SEARCH_ENGINE_LOGO_OTHER,
1785 11, 2117 11,
1786 }; 2118 };
1787 2119
1788 const PrepopulatedEngine yandex_ru = { 2120 const PrepopulatedEngine yandex_ru = {
1789 L"\x042f\x043d\x0434\x0435\x043a\x0441", 2121 L"\x042f\x043d\x0434\x0435\x043a\x0441",
1790 L"yandex.ru", 2122 L"yandex.ru",
1791 "http://yandex.ru/favicon.ico", 2123 "http://yandex.ru/favicon.ico",
1792 L"http://yandex.ru/yandsearch?text={searchTerms}", 2124 L"http://yandex.ru/yandsearch?text={searchTerms}",
1793 "UTF-8", 2125 "UTF-8",
1794 L"http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}", 2126 L"http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}",
2127 TemplateURLPrepopulateData::SEARCH_ENGINE_YANDEX,
2128 IDR_SEARCH_ENGINE_LOGO_YANDEX,
1795 15, 2129 15,
1796 }; 2130 };
1797 2131
1798 const PrepopulatedEngine yandex_ua = { 2132 const PrepopulatedEngine yandex_ua = {
1799 L"\x042f\x043d\x0434\x0435\x043a\x0441", 2133 L"\x042f\x043d\x0434\x0435\x043a\x0441",
1800 L"yandex.ua", 2134 L"yandex.ua",
1801 "http://yandex.ua/favicon.ico", 2135 "http://yandex.ua/favicon.ico",
1802 L"http://yandex.ua/yandsearch?text={searchTerms}", 2136 L"http://yandex.ua/yandsearch?text={searchTerms}",
1803 "UTF-8", 2137 "UTF-8",
1804 L"http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}", 2138 L"http://suggest.yandex.net/suggest-ff.cgi?part={searchTerms}",
2139 TemplateURLPrepopulateData::SEARCH_ENGINE_YANDEX,
2140 IDR_SEARCH_ENGINE_LOGO_YANDEX,
1805 15, 2141 15,
1806 }; 2142 };
1807 2143
1808 const PrepopulatedEngine zoznam = { 2144 const PrepopulatedEngine zoznam = {
1809 L"Zoznam", 2145 L"Zoznam",
1810 L"zoznam.sk", 2146 L"zoznam.sk",
1811 "http://zoznam.sk/favicon.ico", 2147 "http://zoznam.sk/favicon.ico",
1812 L"http://zoznam.sk/hladaj.fcgi?s={searchTerms}", 2148 L"http://zoznam.sk/hladaj.fcgi?s={searchTerms}",
1813 "windows-1250", 2149 "windows-1250",
1814 NULL, 2150 NULL,
2151 TemplateURLPrepopulateData::SEARCH_ENGINE_ZOZNAM,
2152 IDR_SEARCH_ENGINE_LOGO_ZOZNAM,
1815 85, 2153 85,
1816 }; 2154 };
1817 2155
1818 // Lists of engines per country //////////////////////////////////////////////// 2156 // Lists of engines per country ////////////////////////////////////////////////
1819 2157
1820 // Put these in order with most interesting/important first. The default will 2158 // Put these in order with most interesting/important first. The default will
1821 // be the first engine. 2159 // be the first engine.
1822 2160
1823 // Default (for countries with no better engine set) 2161 // Default (for countries with no better engine set)
1824 const PrepopulatedEngine* engines_default[] = 2162 const PrepopulatedEngine* engines_default[] =
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
2811 prefs->GetInteger(prefs::kSearchProviderOverridesVersion); 3149 prefs->GetInteger(prefs::kSearchProviderOverridesVersion);
2812 return (version >= 0) ? version : kCurrentDataVersion; 3150 return (version >= 0) ? version : kCurrentDataVersion;
2813 } 3151 }
2814 3152
2815 TemplateURL* MakePrepopulatedTemplateURL(const wchar_t* name, 3153 TemplateURL* MakePrepopulatedTemplateURL(const wchar_t* name,
2816 const wchar_t* keyword, 3154 const wchar_t* keyword,
2817 const wchar_t* search_url, 3155 const wchar_t* search_url,
2818 const char* favicon_url, 3156 const char* favicon_url,
2819 const wchar_t* suggest_url, 3157 const wchar_t* suggest_url,
2820 const char* encoding, 3158 const char* encoding,
3159 SearchEngineType search_engine_type,
3160 int logo_id,
2821 int id) { 3161 int id) {
2822 TemplateURL* new_turl = new TemplateURL(); 3162 TemplateURL* new_turl = new TemplateURL();
2823 new_turl->SetURL(WideToUTF8(search_url), 0, 0); 3163 new_turl->SetURL(WideToUTF8(search_url), 0, 0);
2824 if (favicon_url) 3164 if (favicon_url)
2825 new_turl->SetFavIconURL(GURL(favicon_url)); 3165 new_turl->SetFavIconURL(GURL(favicon_url));
2826 if (suggest_url) 3166 if (suggest_url)
2827 new_turl->SetSuggestionsURL(WideToUTF8(suggest_url), 0, 0); 3167 new_turl->SetSuggestionsURL(WideToUTF8(suggest_url), 0, 0);
2828 new_turl->set_short_name(name); 3168 new_turl->set_short_name(name);
2829 if (keyword == NULL) 3169 if (keyword == NULL)
2830 new_turl->set_autogenerate_keyword(true); 3170 new_turl->set_autogenerate_keyword(true);
2831 else 3171 else
2832 new_turl->set_keyword(keyword); 3172 new_turl->set_keyword(keyword);
2833 new_turl->set_show_in_default_list(true); 3173 new_turl->set_show_in_default_list(true);
2834 new_turl->set_safe_for_autoreplace(true); 3174 new_turl->set_safe_for_autoreplace(true);
2835 new_turl->set_date_created(Time()); 3175 new_turl->set_date_created(Time());
2836 std::vector<std::string> turl_encodings; 3176 std::vector<std::string> turl_encodings;
2837 turl_encodings.push_back(encoding); 3177 turl_encodings.push_back(encoding);
2838 new_turl->set_input_encodings(turl_encodings); 3178 new_turl->set_input_encodings(turl_encodings);
3179 new_turl->set_search_engine_type(search_engine_type);
3180 new_turl->set_logo_id(logo_id);
2839 new_turl->set_prepopulate_id(id); 3181 new_turl->set_prepopulate_id(id);
2840 return new_turl; 3182 return new_turl;
2841 } 3183 }
2842 3184
2843 void GetPrepopulatedTemplatefromPrefs(PrefService* prefs, 3185 void GetPrepopulatedTemplatefromPrefs(PrefService* prefs,
2844 std::vector<TemplateURL*>* t_urls) { 3186 std::vector<TemplateURL*>* t_urls) {
2845 const ListValue* list = 3187 const ListValue* list =
2846 prefs->GetList(prefs::kSearchProviderOverrides); 3188 prefs->GetList(prefs::kSearchProviderOverrides);
2847 if (!list) 3189 if (!list)
2848 return; 3190 return;
2849 3191
2850 std::wstring name; 3192 std::wstring name;
2851 std::wstring keyword; 3193 std::wstring keyword;
2852 std::wstring search_url; 3194 std::wstring search_url;
2853 std::wstring suggest_url; 3195 std::wstring suggest_url;
2854 std::string favicon_url; 3196 std::string favicon_url;
2855 std::string encoding; 3197 std::string encoding;
3198 int search_engine_type;
3199 int logo_id;
2856 int id; 3200 int id;
2857 3201
2858 size_t num_engines = list->GetSize(); 3202 size_t num_engines = list->GetSize();
2859 for (size_t i = 0; i != num_engines; ++i) { 3203 for (size_t i = 0; i != num_engines; ++i) {
2860 Value* val; 3204 Value* val;
2861 DictionaryValue* engine; 3205 DictionaryValue* engine;
2862 list->GetDictionary(i, &engine); 3206 list->GetDictionary(i, &engine);
2863 if (engine->Get(L"name", &val) && val->GetAsString(&name) && 3207 if (engine->Get(L"name", &val) && val->GetAsString(&name) &&
2864 engine->Get(L"keyword", &val) && val->GetAsString(&keyword) && 3208 engine->Get(L"keyword", &val) && val->GetAsString(&keyword) &&
2865 engine->Get(L"search_url", &val) && val->GetAsString(&search_url) && 3209 engine->Get(L"search_url", &val) && val->GetAsString(&search_url) &&
2866 engine->Get(L"suggest_url", &val) && val->GetAsString(&suggest_url) && 3210 engine->Get(L"suggest_url", &val) && val->GetAsString(&suggest_url) &&
2867 engine->Get(L"favicon_url", &val) && val->GetAsString(&favicon_url) && 3211 engine->Get(L"favicon_url", &val) && val->GetAsString(&favicon_url) &&
2868 engine->Get(L"encoding", &val) && val->GetAsString(&encoding) && 3212 engine->Get(L"encoding", &val) && val->GetAsString(&encoding) &&
3213 engine->Get(L"search_engine_type", &val) && val->GetAsInteger(
3214 &search_engine_type) &&
3215 engine->Get(L"logo_id", &val) && val->GetAsInteger(&logo_id) &&
2869 engine->Get(L"id", &val) && val->GetAsInteger(&id)) { 3216 engine->Get(L"id", &val) && val->GetAsInteger(&id)) {
2870 // These next fields are not allowed to be empty. 3217 // These next fields are not allowed to be empty.
2871 if (search_url.empty() || favicon_url.empty() || encoding.empty()) 3218 if (search_url.empty() || favicon_url.empty() || encoding.empty())
2872 return; 3219 return;
2873 } else { 3220 } else {
2874 // Got a parsing error. No big deal. 3221 // Got a parsing error. No big deal.
2875 continue; 3222 continue;
2876 } 3223 }
2877 t_urls->push_back(MakePrepopulatedTemplateURL(name.c_str(), 3224 t_urls->push_back(MakePrepopulatedTemplateURL(name.c_str(),
2878 keyword.c_str(), 3225 keyword.c_str(),
2879 search_url.c_str(), 3226 search_url.c_str(),
2880 favicon_url.c_str(), 3227 favicon_url.c_str(),
2881 suggest_url.c_str(), 3228 suggest_url.c_str(),
2882 encoding.c_str(), 3229 encoding.c_str(),
2883 id)); 3230 static_cast<SearchEngineType>(search_engine_type),
3231 logo_id,
3232 id));
2884 } 3233 }
2885 } 3234 }
2886 3235
2887 void GetPrepopulatedEngines(PrefService* prefs, 3236 void GetPrepopulatedEngines(PrefService* prefs,
2888 std::vector<TemplateURL*>* t_urls, 3237 std::vector<TemplateURL*>* t_urls,
2889 size_t* default_search_provider_index) { 3238 size_t* default_search_provider_index) {
2890 // If there if there is a set of search engines in the preferences 3239 // If there if there is a set of search engines in the preferences
2891 // file, it overrides the built-in set. 3240 // file, it overrides the built-in set.
2892 *default_search_provider_index = 0; 3241 *default_search_provider_index = 0;
2893 GetPrepopulatedTemplatefromPrefs(prefs, t_urls); 3242 GetPrepopulatedTemplatefromPrefs(prefs, t_urls);
2894 if (!t_urls->empty()) 3243 if (!t_urls->empty())
2895 return; 3244 return;
2896 3245
2897 const PrepopulatedEngine** engines; 3246 const PrepopulatedEngine** engines;
2898 size_t num_engines; 3247 size_t num_engines;
2899 GetPrepopulationSetFromCountryID(prefs, &engines, &num_engines); 3248 GetPrepopulationSetFromCountryID(prefs, &engines, &num_engines);
2900 for (size_t i = 0; i != num_engines; ++i) { 3249 for (size_t i = 0; i != num_engines; ++i) {
2901 TemplateURL* turl = 3250 TemplateURL* turl =
2902 MakePrepopulatedTemplateURL(engines[i]->name, 3251 MakePrepopulatedTemplateURL(engines[i]->name,
2903 engines[i]->keyword, 3252 engines[i]->keyword,
2904 engines[i]->search_url, 3253 engines[i]->search_url,
2905 engines[i]->favicon_url, 3254 engines[i]->favicon_url,
2906 engines[i]->suggest_url, 3255 engines[i]->suggest_url,
2907 engines[i]->encoding, 3256 engines[i]->encoding,
3257 engines[i]->search_engine_type,
3258 engines[i]->logo_id,
2908 engines[i]->id); 3259 engines[i]->id);
2909 t_urls->push_back(turl); 3260 t_urls->push_back(turl);
2910 } 3261 }
2911 } 3262 }
2912 3263
2913 SearchEngineType GetSearchEngineType(const TemplateURL* search_engine) {
2914 switch (search_engine->prepopulate_id()) {
2915 case 1:
2916 return SEARCH_ENGINE_GOOGLE;
2917 case 2:
2918 // Construction of country id = 'J' << 8 | 'P' = 19024
2919 return (GetCountryIDFromPrefs(NULL) == 19024) ? SEARCH_ENGINE_YAHOOJP :
2920 SEARCH_ENGINE_YAHOO;
2921 case 3:
2922 return SEARCH_ENGINE_BING;
2923 case 4:
2924 return SEARCH_ENGINE_ASK;
2925 case 15:
2926 return SEARCH_ENGINE_YANDEX;
2927 case 25:
2928 return SEARCH_ENGINE_SEZNAM;
2929 case 26:
2930 return SEARCH_ENGINE_CENTRUM;
2931 case 30:
2932 return SEARCH_ENGINE_NETSPRINT;
2933 case 62:
2934 return SEARCH_ENGINE_VIRGILIO;
2935 case 83:
2936 return SEARCH_ENGINE_MAILRU;
2937 default:
2938 return SEARCH_ENGINE_OTHER;
2939 }
2940 }
2941
2942 } // namespace TemplateURLPrepopulateData 3264 } // namespace TemplateURLPrepopulateData
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698