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