--- a/components/search_engines/prepopulated_engines.json +++ b/components/search_engines/prepopulated_engines.json @@ -38,6 +38,17 @@ // The following engines are included in country lists and are added to the // list of search engines on the first run depending on user's country. "elements": { + "duckduckgo": { + "name": "DuckDuckGo", + "keyword": "duckduckgo.com", + "favicon_url": "https://duckduckgo.com/favicon.ico", + "search_url": "https://duckduckgo.com/?q={searchTerms}", + "suggest_url": "https://ac.duckduckgo.com/ac/?q={searchTerms}&type=list", + "new_tab_url": "https://duckduckgo.com/", + "type": "SEARCH_ENGINE_DUCKDUCKGO", + "id": 11 + }, + "aol": { "name": "AOL", "keyword": "aol.com", --- a/components/search_engines/search_engine_type.h +++ b/components/search_engines/search_engine_type.h @@ -63,6 +63,7 @@ enum SearchEngineType { SEARCH_ENGINE_YANDEX, SEARCH_ENGINE_ZOZNAM, SEARCH_ENGINE_360, + SEARCH_ENGINE_DUCKDUCKGO, SEARCH_ENGINE_MAX // Bounding value needed for UMA histogram macro. }; --- a/components/search_engines/template_url_prepopulate_data.cc +++ b/components/search_engines/template_url_prepopulate_data.cc @@ -50,548 +50,548 @@ namespace { // Default (for countries with no better engine set) const PrepopulatedEngine* const engines_default[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // United Arab Emirates const PrepopulatedEngine* const engines_AE[] = { - &google, &yahoo_maktoob, &bing, + &duckduckgo, &google, &yahoo_maktoob, &bing, }; // Albania const PrepopulatedEngine* const engines_AL[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Argentina const PrepopulatedEngine* const engines_AR[] = { - &google, &bing, &yahoo_ar, + &duckduckgo, &google, &bing, &yahoo_ar, }; // Austria const PrepopulatedEngine* const engines_AT[] = { - &google, &bing, &yahoo_at, + &duckduckgo, &google, &bing, &yahoo_at, }; // Australia const PrepopulatedEngine* const engines_AU[] = { - &google, &bing, &yahoo_au, + &duckduckgo, &google, &bing, &yahoo_au, }; // Bosnia and Herzegovina const PrepopulatedEngine* const engines_BA[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Belgium const PrepopulatedEngine* const engines_BE[] = { - &google, &bing, &yahoo, &yahoo_fr, + &duckduckgo, &google, &bing, &yahoo, &yahoo_fr, }; // Bulgaria const PrepopulatedEngine* const engines_BG[] = { - &google, &bing, &ask, + &duckduckgo, &google, &bing, &ask, }; // Bahrain const PrepopulatedEngine* const engines_BH[] = { - &google, &yahoo_maktoob, &bing, + &duckduckgo, &google, &yahoo_maktoob, &bing, }; // Burundi const PrepopulatedEngine* const engines_BI[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Brunei const PrepopulatedEngine* const engines_BN[] = { - &google, &yahoo_my, &bing, + &duckduckgo, &google, &yahoo_my, &bing, }; // Bolivia const PrepopulatedEngine* const engines_BO[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Brazil const PrepopulatedEngine* const engines_BR[] = { - &google, &ask_br, &bing, &yahoo_br, + &duckduckgo, &google, &ask_br, &bing, &yahoo_br, }; // Belarus const PrepopulatedEngine* const engines_BY[] = { - &google, &yandex_by, &mail_ru, + &duckduckgo, &google, &yandex_by, &mail_ru, }; // Belize const PrepopulatedEngine* const engines_BZ[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Canada const PrepopulatedEngine* const engines_CA[] = { - &google, &bing, &ask, &yahoo_ca, &yahoo_qc, + &duckduckgo, &google, &bing, &ask, &yahoo_ca, &yahoo_qc, }; // Switzerland const PrepopulatedEngine* const engines_CH[] = { - &google, &bing, &yahoo_ch, + &duckduckgo, &google, &bing, &yahoo_ch, }; // Chile const PrepopulatedEngine* const engines_CL[] = { - &google, &bing, &yahoo_cl, + &duckduckgo, &google, &bing, &yahoo_cl, }; // China const PrepopulatedEngine* const engines_CN[] = { - &google, &baidu, &sogou, &so_360, + &duckduckgo, &google, &baidu, &sogou, &so_360, }; // Colombia const PrepopulatedEngine* const engines_CO[] = { - &google, &bing, &yahoo_co, + &duckduckgo, &google, &bing, &yahoo_co, }; // Costa Rica const PrepopulatedEngine* const engines_CR[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Czech Republic const PrepopulatedEngine* const engines_CZ[] = { - &google, &seznam, &bing, + &duckduckgo, &google, &seznam, &bing, }; // Germany const PrepopulatedEngine* const engines_DE[] = { - &google, &bing, &yahoo_de, + &duckduckgo, &google, &bing, &yahoo_de, }; // Denmark const PrepopulatedEngine* const engines_DK[] = { - &google, &bing, &yahoo_dk, + &duckduckgo, &google, &bing, &yahoo_dk, }; // Dominican Republic const PrepopulatedEngine* const engines_DO[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Algeria const PrepopulatedEngine* const engines_DZ[] = { - &google, &bing, &yahoo_maktoob, + &duckduckgo, &google, &bing, &yahoo_maktoob, }; // Ecuador const PrepopulatedEngine* const engines_EC[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Estonia const PrepopulatedEngine* const engines_EE[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Egypt const PrepopulatedEngine* const engines_EG[] = { - &google, &yahoo_maktoob, &bing, + &duckduckgo, &google, &yahoo_maktoob, &bing, }; // Spain const PrepopulatedEngine* const engines_ES[] = { - &google, &bing, &yahoo_es, + &duckduckgo, &google, &bing, &yahoo_es, }; // Faroe Islands const PrepopulatedEngine* const engines_FO[] = { - &google, &bing, &ask, + &duckduckgo, &google, &bing, &ask, }; // Finland const PrepopulatedEngine* const engines_FI[] = { - &google, &bing, &yahoo_fi, + &duckduckgo, &google, &bing, &yahoo_fi, }; // France const PrepopulatedEngine* const engines_FR[] = { - &google, &bing, &yahoo_fr, + &duckduckgo, &google, &bing, &yahoo_fr, }; // United Kingdom const PrepopulatedEngine* const engines_GB[] = { - &google, &bing, &yahoo_uk, &ask_uk, + &duckduckgo, &google, &bing, &yahoo_uk, &ask_uk, }; // Greece const PrepopulatedEngine* const engines_GR[] = { - &google, &bing, &yahoo_gr, + &duckduckgo, &google, &bing, &yahoo_gr, }; // Guatemala const PrepopulatedEngine* const engines_GT[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Hong Kong const PrepopulatedEngine* const engines_HK[] = { - &google, &yahoo_hk, &baidu, &bing, + &duckduckgo, &google, &yahoo_hk, &baidu, &bing, }; // Honduras const PrepopulatedEngine* const engines_HN[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Croatia const PrepopulatedEngine* const engines_HR[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Hungary const PrepopulatedEngine* const engines_HU[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Indonesia const PrepopulatedEngine* const engines_ID[] = { - &google, &yahoo_id, &bing, + &duckduckgo, &google, &yahoo_id, &bing, }; // Ireland const PrepopulatedEngine* const engines_IE[] = { - &google, &bing, &yahoo_uk, + &duckduckgo, &google, &bing, &yahoo_uk, }; // Israel const PrepopulatedEngine* const engines_IL[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // India const PrepopulatedEngine* const engines_IN[] = { - &google, &bing, &yahoo_in, + &duckduckgo, &google, &bing, &yahoo_in, }; // Iraq const PrepopulatedEngine* const engines_IQ[] = { - &google, &yahoo_maktoob, &bing, + &duckduckgo, &google, &yahoo_maktoob, &bing, }; // Iran const PrepopulatedEngine* const engines_IR[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Iceland const PrepopulatedEngine* const engines_IS[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Italy const PrepopulatedEngine* const engines_IT[] = { - &google, &virgilio, &bing, + &duckduckgo, &google, &virgilio, &bing, }; // Jamaica const PrepopulatedEngine* const engines_JM[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Jordan const PrepopulatedEngine* const engines_JO[] = { - &google, &yahoo_maktoob, &bing, + &duckduckgo, &google, &yahoo_maktoob, &bing, }; // Japan const PrepopulatedEngine* const engines_JP[] = { - &google, &yahoo_jp, &bing, + &duckduckgo, &google, &yahoo_jp, &bing, }; // Kenya const PrepopulatedEngine* const engines_KE[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Kuwait const PrepopulatedEngine* const engines_KW[] = { - &google, &yahoo_maktoob, &bing, + &duckduckgo, &google, &yahoo_maktoob, &bing, }; // South Korea const PrepopulatedEngine* const engines_KR[] = { - &google, &naver, &daum, + &duckduckgo, &google, &naver, &daum, }; // Kazakhstan const PrepopulatedEngine* const engines_KZ[] = { - &google, &mail_ru, &yandex_kz, + &duckduckgo, &google, &mail_ru, &yandex_kz, }; // Lebanon const PrepopulatedEngine* const engines_LB[] = { - &google, &yahoo_maktoob, &bing, + &duckduckgo, &google, &yahoo_maktoob, &bing, }; // Liechtenstein const PrepopulatedEngine* const engines_LI[] = { - &google, &bing, &yahoo_de, + &duckduckgo, &google, &bing, &yahoo_de, }; // Lithuania const PrepopulatedEngine* const engines_LT[] = { - &google, &bing, &yandex_ru, + &duckduckgo, &google, &bing, &yandex_ru, }; // Luxembourg const PrepopulatedEngine* const engines_LU[] = { - &google, &bing, &yahoo_fr, + &duckduckgo, &google, &bing, &yahoo_fr, }; // Latvia const PrepopulatedEngine* const engines_LV[] = { - &google, &yandex_ru, &bing, + &duckduckgo, &google, &yandex_ru, &bing, }; // Libya const PrepopulatedEngine* const engines_LY[] = { - &google, &yahoo_maktoob, &bing, + &duckduckgo, &google, &yahoo_maktoob, &bing, }; // Morocco const PrepopulatedEngine* const engines_MA[] = { - &google, &bing, &yahoo_maktoob, + &duckduckgo, &google, &bing, &yahoo_maktoob, }; // Monaco const PrepopulatedEngine* const engines_MC[] = { - &google, &yahoo_fr, &bing, + &duckduckgo, &google, &yahoo_fr, &bing, }; // Moldova const PrepopulatedEngine* const engines_MD[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Montenegro const PrepopulatedEngine* const engines_ME[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Macedonia const PrepopulatedEngine* const engines_MK[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Mexico const PrepopulatedEngine* const engines_MX[] = { - &google, &bing, &yahoo_mx, + &duckduckgo, &google, &bing, &yahoo_mx, }; // Malaysia const PrepopulatedEngine* const engines_MY[] = { - &google, &yahoo_my, &bing, + &duckduckgo, &google, &yahoo_my, &bing, }; // Nicaragua const PrepopulatedEngine* const engines_NI[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Netherlands const PrepopulatedEngine* const engines_NL[] = { - &google, &yahoo_nl, &vinden, + &duckduckgo, &google, &yahoo_nl, &vinden, }; // Norway const PrepopulatedEngine* const engines_NO[] = { - &google, &bing, &kvasir, + &duckduckgo, &google, &bing, &kvasir, }; // New Zealand const PrepopulatedEngine* const engines_NZ[] = { - &google, &bing, &yahoo_nz, + &duckduckgo, &google, &bing, &yahoo_nz, }; // Oman const PrepopulatedEngine* const engines_OM[] = { - &google, &bing, &yahoo_maktoob, + &duckduckgo, &google, &bing, &yahoo_maktoob, }; // Panama const PrepopulatedEngine* const engines_PA[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Peru const PrepopulatedEngine* const engines_PE[] = { - &google, &bing, &yahoo_pe, + &duckduckgo, &google, &bing, &yahoo_pe, }; // Philippines const PrepopulatedEngine* const engines_PH[] = { - &google, &yahoo_ph, &bing, + &duckduckgo, &google, &yahoo_ph, &bing, }; // Pakistan const PrepopulatedEngine* const engines_PK[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Puerto Rico const PrepopulatedEngine* const engines_PR[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Poland const PrepopulatedEngine* const engines_PL[] = { - &google, &onet, &bing, + &duckduckgo, &google, &onet, &bing, }; // Portugal const PrepopulatedEngine* const engines_PT[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Paraguay const PrepopulatedEngine* const engines_PY[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Qatar const PrepopulatedEngine* const engines_QA[] = { - &google, &yahoo_maktoob, &bing, + &duckduckgo, &google, &yahoo_maktoob, &bing, }; // Romania const PrepopulatedEngine* const engines_RO[] = { - &google, &yahoo_ro, &bing, + &duckduckgo, &google, &yahoo_ro, &bing, }; // Serbia const PrepopulatedEngine* const engines_RS[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Russia const PrepopulatedEngine* const engines_RU[] = { - &google, &yandex_ru, &mail_ru, + &duckduckgo, &google, &yandex_ru, &mail_ru, }; // Rwanda const PrepopulatedEngine* const engines_RW[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Saudi Arabia const PrepopulatedEngine* const engines_SA[] = { - &google, &yahoo_maktoob, &bing, + &duckduckgo, &google, &yahoo_maktoob, &bing, }; // Sweden const PrepopulatedEngine* const engines_SE[] = { - &google, &bing, &yahoo_se, + &duckduckgo, &google, &bing, &yahoo_se, }; // Singapore const PrepopulatedEngine* const engines_SG[] = { - &google, &yahoo_sg, &bing, + &duckduckgo, &google, &yahoo_sg, &bing, }; // Slovenia const PrepopulatedEngine* const engines_SI[] = { - &google, &najdi, &ask, + &duckduckgo, &google, &najdi, &ask, }; // Slovakia const PrepopulatedEngine* const engines_SK[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // El Salvador const PrepopulatedEngine* const engines_SV[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Syria const PrepopulatedEngine* const engines_SY[] = { - &google, &bing, &yahoo_maktoob, + &duckduckgo, &google, &bing, &yahoo_maktoob, }; // Thailand const PrepopulatedEngine* const engines_TH[] = { - &google, &yahoo_th, &bing, + &duckduckgo, &google, &yahoo_th, &bing, }; // Tunisia const PrepopulatedEngine* const engines_TN[] = { - &google, &bing, &yahoo_maktoob, + &duckduckgo, &google, &bing, &yahoo_maktoob, }; // Turkey const PrepopulatedEngine* const engines_TR[] = { - &google, &bing, &yahoo_tr, &yandex_tr, + &duckduckgo, &google, &bing, &yahoo_tr, &yandex_tr, }; // Trinidad and Tobago const PrepopulatedEngine* const engines_TT[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Taiwan const PrepopulatedEngine* const engines_TW[] = { - &google, &yahoo_tw, &bing, + &duckduckgo, &google, &yahoo_tw, &bing, }; // Tanzania const PrepopulatedEngine* const engines_TZ[] = { - &google, &yahoo, &bing, + &duckduckgo, &google, &yahoo, &bing, }; // Ukraine const PrepopulatedEngine* const engines_UA[] = { - &google, &yandex_ua, &bing, + &duckduckgo, &google, &yandex_ua, &bing, }; // United States const PrepopulatedEngine* const engines_US[] = { - &google, &bing, &yahoo, &aol, &ask, + &duckduckgo, &google, &bing, &yahoo, &aol, &ask, }; // Uruguay const PrepopulatedEngine* const engines_UY[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Venezuela const PrepopulatedEngine* const engines_VE[] = { - &google, &bing, &yahoo_ve, + &duckduckgo, &google, &bing, &yahoo_ve, }; // Vietnam const PrepopulatedEngine* const engines_VN[] = { - &google, &yahoo_vn, &bing, + &duckduckgo, &google, &yahoo_vn, &bing, }; // Yemen const PrepopulatedEngine* const engines_YE[] = { - &google, &bing, &yahoo_maktoob, + &duckduckgo, &google, &bing, &yahoo_maktoob, }; // South Africa const PrepopulatedEngine* const engines_ZA[] = { - &google, &bing, &yahoo, + &duckduckgo, &google, &bing, &yahoo, }; // Zimbabwe const PrepopulatedEngine* const engines_ZW[] = { - &google, &bing, &yahoo, &ask, + &duckduckgo, &google, &bing, &yahoo, &ask, }; // A list of all the engines that we know about. const PrepopulatedEngine* const kAllEngines[] = { // Prepopulated engines: - &aol, &ask, &ask_br, &ask_uk, &baidu, &bing, &daum, &google, &kvasir, + &aol, &ask, &ask_br, &ask_uk, &baidu, &bing, &daum, &duckduckgo, &google, &kvasir, &mail_ru, &najdi, &naver, &onet, &seznam, &sogou, &vinden, &virgilio, &yahoo, &yahoo_ar, &yahoo_at, &yahoo_au, &yahoo_br, &yahoo_ca, &yahoo_ch, &yahoo_cl, &yahoo_co, &yahoo_de, &yahoo_dk, &yahoo_es, &yahoo_fi, &yahoo_fr,