BRM036_Add-DuckDuckGo-search-engine.patch 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715
  1. From: csagan5 <32685696+csagan5@users.noreply.github.com>
  2. Date: Thu, 12 Oct 2017 11:06:18 +0200
  3. Subject: Add DuckDuckGo search engine
  4. ---
  5. .../search_engines/prepopulated_engines.json | 19 ++
  6. components/search_engines/search_engine_type.h | 2 +
  7. .../template_url_prepopulate_data.cc | 218 ++++++++++-----------
  8. 3 files changed, 130 insertions(+), 109 deletions(-)
  9. diff --git a/components/search_engines/prepopulated_engines.json b/components/search_engines/prepopulated_engines.json
  10. --- a/components/search_engines/prepopulated_engines.json
  11. +++ b/components/search_engines/prepopulated_engines.json
  12. @@ -38,6 +38,25 @@
  13. // The following engines are included in country lists and are added to the
  14. // list of search engines on the first run depending on user's country.
  15. "elements": {
  16. + "duckduckgo": {
  17. + "name": "DuckDuckGo",
  18. + "keyword": "duckduckgo.com",
  19. + "favicon_url": "https://duckduckgo.com/favicon.ico",
  20. + "search_url": "https://duckduckgo.com/?q={searchTerms}",
  21. + "suggest_url": "https://ac.duckduckgo.com/ac/?q={searchTerms}&type=list",
  22. + "type": "SEARCH_ENGINE_DUCKDUCKGO",
  23. + "id": 11
  24. + },
  25. +
  26. + "duckduckgo_light": {
  27. + "name": "DuckDuckGo Light",
  28. + "keyword": "duckduckgo.com/lite",
  29. + "favicon_url": "https://duckduckgo.com/favicon.ico",
  30. + "search_url": "https://duckduckgo.com/lite/?q={searchTerms}",
  31. + "type": "SEARCH_ENGINE_DUCKDUCKGOLIGHT",
  32. + "id": 12
  33. + },
  34. +
  35. "aol": {
  36. "name": "AOL",
  37. "keyword": "aol.com",
  38. diff --git a/components/search_engines/search_engine_type.h b/components/search_engines/search_engine_type.h
  39. --- a/components/search_engines/search_engine_type.h
  40. +++ b/components/search_engines/search_engine_type.h
  41. @@ -63,6 +63,8 @@ enum SearchEngineType {
  42. SEARCH_ENGINE_YANDEX,
  43. SEARCH_ENGINE_ZOZNAM,
  44. SEARCH_ENGINE_360,
  45. + SEARCH_ENGINE_DUCKDUCKGO,
  46. + SEARCH_ENGINE_DUCKDUCKGOLIGHT,
  47. SEARCH_ENGINE_MAX // Bounding value needed for UMA histogram macro.
  48. };
  49. diff --git a/components/search_engines/template_url_prepopulate_data.cc b/components/search_engines/template_url_prepopulate_data.cc
  50. --- a/components/search_engines/template_url_prepopulate_data.cc
  51. +++ b/components/search_engines/template_url_prepopulate_data.cc
  52. @@ -51,548 +51,548 @@ namespace {
  53. // Default (for countries with no better engine set)
  54. const PrepopulatedEngine* const engines_default[] = {
  55. - &google, &bing, &yahoo,
  56. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  57. };
  58. // United Arab Emirates
  59. const PrepopulatedEngine* const engines_AE[] = {
  60. - &google, &yahoo_maktoob, &bing,
  61. + &google, &duckduckgo, &duckduckgo_light, &yahoo_maktoob, &bing,
  62. };
  63. // Albania
  64. const PrepopulatedEngine* const engines_AL[] = {
  65. - &google, &yahoo, &bing,
  66. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  67. };
  68. // Argentina
  69. const PrepopulatedEngine* const engines_AR[] = {
  70. - &google, &bing, &yahoo_ar,
  71. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_ar,
  72. };
  73. // Austria
  74. const PrepopulatedEngine* const engines_AT[] = {
  75. - &google, &bing, &yahoo_at,
  76. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_at,
  77. };
  78. // Australia
  79. const PrepopulatedEngine* const engines_AU[] = {
  80. - &google, &bing, &yahoo_au,
  81. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_au,
  82. };
  83. // Bosnia and Herzegovina
  84. const PrepopulatedEngine* const engines_BA[] = {
  85. - &google, &yahoo, &bing,
  86. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  87. };
  88. // Belgium
  89. const PrepopulatedEngine* const engines_BE[] = {
  90. - &google, &bing, &yahoo, &yahoo_fr,
  91. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo, &yahoo_fr,
  92. };
  93. // Bulgaria
  94. const PrepopulatedEngine* const engines_BG[] = {
  95. - &google, &bing, &ask,
  96. + &google, &duckduckgo, &duckduckgo_light, &bing, &ask,
  97. };
  98. // Bahrain
  99. const PrepopulatedEngine* const engines_BH[] = {
  100. - &google, &yahoo_maktoob, &bing,
  101. + &google, &duckduckgo, &duckduckgo_light, &yahoo_maktoob, &bing,
  102. };
  103. // Burundi
  104. const PrepopulatedEngine* const engines_BI[] = {
  105. - &google, &yahoo, &bing,
  106. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  107. };
  108. // Brunei
  109. const PrepopulatedEngine* const engines_BN[] = {
  110. - &google, &yahoo_my, &bing,
  111. + &google, &duckduckgo, &duckduckgo_light, &yahoo_my, &bing,
  112. };
  113. // Bolivia
  114. const PrepopulatedEngine* const engines_BO[] = {
  115. - &google, &bing, &yahoo,
  116. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  117. };
  118. // Brazil
  119. const PrepopulatedEngine* const engines_BR[] = {
  120. - &google, &ask_br, &bing, &yahoo_br,
  121. + &google, &duckduckgo, &duckduckgo_light, &ask_br, &bing, &yahoo_br,
  122. };
  123. // Belarus
  124. const PrepopulatedEngine* const engines_BY[] = {
  125. - &google, &yandex_by, &mail_ru,
  126. + &google, &duckduckgo, &duckduckgo_light, &yandex_by, &mail_ru,
  127. };
  128. // Belize
  129. const PrepopulatedEngine* const engines_BZ[] = {
  130. - &google, &yahoo, &bing,
  131. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  132. };
  133. // Canada
  134. const PrepopulatedEngine* const engines_CA[] = {
  135. - &google, &bing, &ask, &yahoo_ca, &yahoo_qc,
  136. + &google, &duckduckgo, &duckduckgo_light, &bing, &ask, &yahoo_ca, &yahoo_qc,
  137. };
  138. // Switzerland
  139. const PrepopulatedEngine* const engines_CH[] = {
  140. - &google, &bing, &yahoo_ch,
  141. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_ch,
  142. };
  143. // Chile
  144. const PrepopulatedEngine* const engines_CL[] = {
  145. - &google, &bing, &yahoo_cl,
  146. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_cl,
  147. };
  148. // China
  149. const PrepopulatedEngine* const engines_CN[] = {
  150. - &google, &baidu, &sogou, &so_360,
  151. + &google, &duckduckgo, &duckduckgo_light, &baidu, &sogou, &so_360,
  152. };
  153. // Colombia
  154. const PrepopulatedEngine* const engines_CO[] = {
  155. - &google, &bing, &yahoo_co,
  156. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_co,
  157. };
  158. // Costa Rica
  159. const PrepopulatedEngine* const engines_CR[] = {
  160. - &google, &yahoo, &bing,
  161. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  162. };
  163. // Czech Republic
  164. const PrepopulatedEngine* const engines_CZ[] = {
  165. - &google, &seznam, &bing,
  166. + &google, &duckduckgo, &duckduckgo_light, &seznam, &bing,
  167. };
  168. // Germany
  169. const PrepopulatedEngine* const engines_DE[] = {
  170. - &google, &bing, &yahoo_de,
  171. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_de,
  172. };
  173. // Denmark
  174. const PrepopulatedEngine* const engines_DK[] = {
  175. - &google, &bing, &yahoo_dk,
  176. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_dk,
  177. };
  178. // Dominican Republic
  179. const PrepopulatedEngine* const engines_DO[] = {
  180. - &google, &yahoo, &bing,
  181. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  182. };
  183. // Algeria
  184. const PrepopulatedEngine* const engines_DZ[] = {
  185. - &google, &bing, &yahoo_maktoob,
  186. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_maktoob,
  187. };
  188. // Ecuador
  189. const PrepopulatedEngine* const engines_EC[] = {
  190. - &google, &bing, &yahoo,
  191. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  192. };
  193. // Estonia
  194. const PrepopulatedEngine* const engines_EE[] = {
  195. - &google, &bing, &yahoo,
  196. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  197. };
  198. // Egypt
  199. const PrepopulatedEngine* const engines_EG[] = {
  200. - &google, &yahoo_maktoob, &bing,
  201. + &google, &duckduckgo, &duckduckgo_light, &yahoo_maktoob, &bing,
  202. };
  203. // Spain
  204. const PrepopulatedEngine* const engines_ES[] = {
  205. - &google, &bing, &yahoo_es,
  206. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_es,
  207. };
  208. // Faroe Islands
  209. const PrepopulatedEngine* const engines_FO[] = {
  210. - &google, &bing, &ask,
  211. + &google, &duckduckgo, &duckduckgo_light, &bing, &ask,
  212. };
  213. // Finland
  214. const PrepopulatedEngine* const engines_FI[] = {
  215. - &google, &bing, &yahoo_fi,
  216. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_fi,
  217. };
  218. // France
  219. const PrepopulatedEngine* const engines_FR[] = {
  220. - &google, &bing, &yahoo_fr,
  221. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_fr,
  222. };
  223. // United Kingdom
  224. const PrepopulatedEngine* const engines_GB[] = {
  225. - &google, &bing, &yahoo_uk, &ask_uk,
  226. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_uk, &ask_uk,
  227. };
  228. // Greece
  229. const PrepopulatedEngine* const engines_GR[] = {
  230. - &google, &bing, &yahoo_gr,
  231. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_gr,
  232. };
  233. // Guatemala
  234. const PrepopulatedEngine* const engines_GT[] = {
  235. - &google, &yahoo, &bing,
  236. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  237. };
  238. // Hong Kong
  239. const PrepopulatedEngine* const engines_HK[] = {
  240. - &google, &yahoo_hk, &baidu, &bing,
  241. + &google, &duckduckgo, &duckduckgo_light, &yahoo_hk, &baidu, &bing,
  242. };
  243. // Honduras
  244. const PrepopulatedEngine* const engines_HN[] = {
  245. - &google, &yahoo, &bing,
  246. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  247. };
  248. // Croatia
  249. const PrepopulatedEngine* const engines_HR[] = {
  250. - &google, &bing, &yahoo,
  251. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  252. };
  253. // Hungary
  254. const PrepopulatedEngine* const engines_HU[] = {
  255. - &google, &bing, &yahoo,
  256. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  257. };
  258. // Indonesia
  259. const PrepopulatedEngine* const engines_ID[] = {
  260. - &google, &yahoo_id, &bing,
  261. + &google, &duckduckgo, &duckduckgo_light, &yahoo_id, &bing,
  262. };
  263. // Ireland
  264. const PrepopulatedEngine* const engines_IE[] = {
  265. - &google, &bing, &yahoo_uk,
  266. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_uk,
  267. };
  268. // Israel
  269. const PrepopulatedEngine* const engines_IL[] = {
  270. - &google, &yahoo, &bing,
  271. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  272. };
  273. // India
  274. const PrepopulatedEngine* const engines_IN[] = {
  275. - &google, &bing, &yahoo_in,
  276. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_in,
  277. };
  278. // Iraq
  279. const PrepopulatedEngine* const engines_IQ[] = {
  280. - &google, &yahoo_maktoob, &bing,
  281. + &google, &duckduckgo, &duckduckgo_light, &yahoo_maktoob, &bing,
  282. };
  283. // Iran
  284. const PrepopulatedEngine* const engines_IR[] = {
  285. - &google, &yahoo, &bing,
  286. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  287. };
  288. // Iceland
  289. const PrepopulatedEngine* const engines_IS[] = {
  290. - &google, &bing, &yahoo,
  291. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  292. };
  293. // Italy
  294. const PrepopulatedEngine* const engines_IT[] = {
  295. - &google, &virgilio, &bing,
  296. + &google, &duckduckgo, &duckduckgo_light, &virgilio, &bing,
  297. };
  298. // Jamaica
  299. const PrepopulatedEngine* const engines_JM[] = {
  300. - &google, &yahoo, &bing,
  301. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  302. };
  303. // Jordan
  304. const PrepopulatedEngine* const engines_JO[] = {
  305. - &google, &yahoo_maktoob, &bing,
  306. + &google, &duckduckgo, &duckduckgo_light, &yahoo_maktoob, &bing,
  307. };
  308. // Japan
  309. const PrepopulatedEngine* const engines_JP[] = {
  310. - &google, &yahoo_jp, &bing,
  311. + &google, &duckduckgo, &duckduckgo_light, &yahoo_jp, &bing,
  312. };
  313. // Kenya
  314. const PrepopulatedEngine* const engines_KE[] = {
  315. - &google, &yahoo, &bing,
  316. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  317. };
  318. // Kuwait
  319. const PrepopulatedEngine* const engines_KW[] = {
  320. - &google, &yahoo_maktoob, &bing,
  321. + &google, &duckduckgo, &duckduckgo_light, &yahoo_maktoob, &bing,
  322. };
  323. // South Korea
  324. const PrepopulatedEngine* const engines_KR[] = {
  325. - &google, &naver, &daum,
  326. + &google, &duckduckgo, &duckduckgo_light, &naver, &daum,
  327. };
  328. // Kazakhstan
  329. const PrepopulatedEngine* const engines_KZ[] = {
  330. - &google, &mail_ru, &yandex_kz,
  331. + &google, &duckduckgo, &duckduckgo_light, &mail_ru, &yandex_kz,
  332. };
  333. // Lebanon
  334. const PrepopulatedEngine* const engines_LB[] = {
  335. - &google, &yahoo_maktoob, &bing,
  336. + &google, &duckduckgo, &duckduckgo_light, &yahoo_maktoob, &bing,
  337. };
  338. // Liechtenstein
  339. const PrepopulatedEngine* const engines_LI[] = {
  340. - &google, &bing, &yahoo_de,
  341. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_de,
  342. };
  343. // Lithuania
  344. const PrepopulatedEngine* const engines_LT[] = {
  345. - &google, &bing, &yandex_ru,
  346. + &google, &duckduckgo, &duckduckgo_light, &bing, &yandex_ru,
  347. };
  348. // Luxembourg
  349. const PrepopulatedEngine* const engines_LU[] = {
  350. - &google, &bing, &yahoo_fr,
  351. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_fr,
  352. };
  353. // Latvia
  354. const PrepopulatedEngine* const engines_LV[] = {
  355. - &google, &yandex_ru, &bing,
  356. + &google, &duckduckgo, &duckduckgo_light, &yandex_ru, &bing,
  357. };
  358. // Libya
  359. const PrepopulatedEngine* const engines_LY[] = {
  360. - &google, &yahoo_maktoob, &bing,
  361. + &google, &duckduckgo, &duckduckgo_light, &yahoo_maktoob, &bing,
  362. };
  363. // Morocco
  364. const PrepopulatedEngine* const engines_MA[] = {
  365. - &google, &bing, &yahoo_maktoob,
  366. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_maktoob,
  367. };
  368. // Monaco
  369. const PrepopulatedEngine* const engines_MC[] = {
  370. - &google, &yahoo_fr, &bing,
  371. + &google, &duckduckgo, &duckduckgo_light, &yahoo_fr, &bing,
  372. };
  373. // Moldova
  374. const PrepopulatedEngine* const engines_MD[] = {
  375. - &google, &bing, &yahoo,
  376. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  377. };
  378. // Montenegro
  379. const PrepopulatedEngine* const engines_ME[] = {
  380. - &google, &bing, &yahoo,
  381. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  382. };
  383. // Macedonia
  384. const PrepopulatedEngine* const engines_MK[] = {
  385. - &google, &yahoo, &bing,
  386. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  387. };
  388. // Mexico
  389. const PrepopulatedEngine* const engines_MX[] = {
  390. - &google, &bing, &yahoo_mx,
  391. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_mx,
  392. };
  393. // Malaysia
  394. const PrepopulatedEngine* const engines_MY[] = {
  395. - &google, &yahoo_my, &bing,
  396. + &google, &duckduckgo, &duckduckgo_light, &yahoo_my, &bing,
  397. };
  398. // Nicaragua
  399. const PrepopulatedEngine* const engines_NI[] = {
  400. - &google, &yahoo, &bing,
  401. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  402. };
  403. // Netherlands
  404. const PrepopulatedEngine* const engines_NL[] = {
  405. - &google, &yahoo_nl, &vinden,
  406. + &google, &duckduckgo, &duckduckgo_light, &yahoo_nl, &vinden,
  407. };
  408. // Norway
  409. const PrepopulatedEngine* const engines_NO[] = {
  410. - &google, &bing, &kvasir,
  411. + &google, &duckduckgo, &duckduckgo_light, &bing, &kvasir,
  412. };
  413. // New Zealand
  414. const PrepopulatedEngine* const engines_NZ[] = {
  415. - &google, &bing, &yahoo_nz,
  416. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_nz,
  417. };
  418. // Oman
  419. const PrepopulatedEngine* const engines_OM[] = {
  420. - &google, &bing, &yahoo_maktoob,
  421. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_maktoob,
  422. };
  423. // Panama
  424. const PrepopulatedEngine* const engines_PA[] = {
  425. - &google, &yahoo, &bing,
  426. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  427. };
  428. // Peru
  429. const PrepopulatedEngine* const engines_PE[] = {
  430. - &google, &bing, &yahoo_pe,
  431. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_pe,
  432. };
  433. // Philippines
  434. const PrepopulatedEngine* const engines_PH[] = {
  435. - &google, &yahoo_ph, &bing,
  436. + &google, &duckduckgo, &duckduckgo_light, &yahoo_ph, &bing,
  437. };
  438. // Pakistan
  439. const PrepopulatedEngine* const engines_PK[] = {
  440. - &google, &yahoo, &bing,
  441. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  442. };
  443. // Puerto Rico
  444. const PrepopulatedEngine* const engines_PR[] = {
  445. - &google, &yahoo, &bing,
  446. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  447. };
  448. // Poland
  449. const PrepopulatedEngine* const engines_PL[] = {
  450. - &google, &onet, &bing,
  451. + &google, &duckduckgo, &duckduckgo_light, &onet, &bing,
  452. };
  453. // Portugal
  454. const PrepopulatedEngine* const engines_PT[] = {
  455. - &google, &bing, &yahoo,
  456. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  457. };
  458. // Paraguay
  459. const PrepopulatedEngine* const engines_PY[] = {
  460. - &google, &bing, &yahoo,
  461. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  462. };
  463. // Qatar
  464. const PrepopulatedEngine* const engines_QA[] = {
  465. - &google, &yahoo_maktoob, &bing,
  466. + &google, &duckduckgo, &duckduckgo_light, &yahoo_maktoob, &bing,
  467. };
  468. // Romania
  469. const PrepopulatedEngine* const engines_RO[] = {
  470. - &google, &yahoo_ro, &bing,
  471. + &google, &duckduckgo, &duckduckgo_light, &yahoo_ro, &bing,
  472. };
  473. // Serbia
  474. const PrepopulatedEngine* const engines_RS[] = {
  475. - &google, &bing, &yahoo,
  476. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  477. };
  478. // Russia
  479. const PrepopulatedEngine* const engines_RU[] = {
  480. - &google, &yandex_ru, &mail_ru,
  481. + &google, &duckduckgo, &duckduckgo_light, &yandex_ru, &mail_ru,
  482. };
  483. // Rwanda
  484. const PrepopulatedEngine* const engines_RW[] = {
  485. - &google, &bing, &yahoo,
  486. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  487. };
  488. // Saudi Arabia
  489. const PrepopulatedEngine* const engines_SA[] = {
  490. - &google, &yahoo_maktoob, &bing,
  491. + &google, &duckduckgo, &duckduckgo_light, &yahoo_maktoob, &bing,
  492. };
  493. // Sweden
  494. const PrepopulatedEngine* const engines_SE[] = {
  495. - &google, &bing, &yahoo_se,
  496. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_se,
  497. };
  498. // Singapore
  499. const PrepopulatedEngine* const engines_SG[] = {
  500. - &google, &yahoo_sg, &bing,
  501. + &google, &duckduckgo, &duckduckgo_light, &yahoo_sg, &bing,
  502. };
  503. // Slovenia
  504. const PrepopulatedEngine* const engines_SI[] = {
  505. - &google, &najdi, &ask,
  506. + &google, &duckduckgo, &duckduckgo_light, &najdi, &ask,
  507. };
  508. // Slovakia
  509. const PrepopulatedEngine* const engines_SK[] = {
  510. - &google, &bing, &yahoo,
  511. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  512. };
  513. // El Salvador
  514. const PrepopulatedEngine* const engines_SV[] = {
  515. - &google, &yahoo, &bing,
  516. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  517. };
  518. // Syria
  519. const PrepopulatedEngine* const engines_SY[] = {
  520. - &google, &bing, &yahoo_maktoob,
  521. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_maktoob,
  522. };
  523. // Thailand
  524. const PrepopulatedEngine* const engines_TH[] = {
  525. - &google, &yahoo_th, &bing,
  526. + &google, &duckduckgo, &duckduckgo_light, &yahoo_th, &bing,
  527. };
  528. // Tunisia
  529. const PrepopulatedEngine* const engines_TN[] = {
  530. - &google, &bing, &yahoo_maktoob,
  531. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_maktoob,
  532. };
  533. // Turkey
  534. const PrepopulatedEngine* const engines_TR[] = {
  535. - &google, &bing, &yahoo_tr, &yandex_tr,
  536. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_tr, &yandex_tr,
  537. };
  538. // Trinidad and Tobago
  539. const PrepopulatedEngine* const engines_TT[] = {
  540. - &google, &bing, &yahoo,
  541. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  542. };
  543. // Taiwan
  544. const PrepopulatedEngine* const engines_TW[] = {
  545. - &google, &yahoo_tw, &bing,
  546. + &google, &duckduckgo, &duckduckgo_light, &yahoo_tw, &bing,
  547. };
  548. // Tanzania
  549. const PrepopulatedEngine* const engines_TZ[] = {
  550. - &google, &yahoo, &bing,
  551. + &google, &duckduckgo, &duckduckgo_light, &yahoo, &bing,
  552. };
  553. // Ukraine
  554. const PrepopulatedEngine* const engines_UA[] = {
  555. - &google, &yandex_ua, &bing,
  556. + &google, &duckduckgo, &duckduckgo_light, &yandex_ua, &bing,
  557. };
  558. // United States
  559. const PrepopulatedEngine* const engines_US[] = {
  560. - &google, &bing, &yahoo, &aol, &ask,
  561. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo, &aol, &ask,
  562. };
  563. // Uruguay
  564. const PrepopulatedEngine* const engines_UY[] = {
  565. - &google, &bing, &yahoo,
  566. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  567. };
  568. // Venezuela
  569. const PrepopulatedEngine* const engines_VE[] = {
  570. - &google, &bing, &yahoo_ve,
  571. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_ve,
  572. };
  573. // Vietnam
  574. const PrepopulatedEngine* const engines_VN[] = {
  575. - &google, &yahoo_vn, &bing,
  576. + &google, &duckduckgo, &duckduckgo_light, &yahoo_vn, &bing,
  577. };
  578. // Yemen
  579. const PrepopulatedEngine* const engines_YE[] = {
  580. - &google, &bing, &yahoo_maktoob,
  581. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo_maktoob,
  582. };
  583. // South Africa
  584. const PrepopulatedEngine* const engines_ZA[] = {
  585. - &google, &bing, &yahoo,
  586. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo,
  587. };
  588. // Zimbabwe
  589. const PrepopulatedEngine* const engines_ZW[] = {
  590. - &google, &bing, &yahoo, &ask,
  591. + &google, &duckduckgo, &duckduckgo_light, &bing, &yahoo, &ask,
  592. };
  593. // A list of all the engines that we know about.
  594. const PrepopulatedEngine* const kAllEngines[] = {
  595. // Prepopulated engines:
  596. - &aol, &ask, &ask_br, &ask_uk, &baidu, &bing, &daum, &google, &kvasir,
  597. + &aol, &ask, &ask_br, &ask_uk, &baidu, &bing, &daum, &google, &duckduckgo, &duckduckgo_light, &kvasir,
  598. &mail_ru, &najdi, &naver, &onet, &seznam, &sogou, &vinden, &virgilio,
  599. &yahoo, &yahoo_ar, &yahoo_at, &yahoo_au, &yahoo_br, &yahoo_ca, &yahoo_ch,
  600. &yahoo_cl, &yahoo_co, &yahoo_de, &yahoo_dk, &yahoo_es, &yahoo_fi, &yahoo_fr,
  601. --
  602. 2.7.4