diff --git a/components/search_engines/prepopulated_engines.json b/components/search_engines/prepopulated_engines.json index 97dad3e..42e70c2 100644 --- a/components/search_engines/prepopulated_engines.json +++ b/components/search_engines/prepopulated_engines.json @@ -9,7 +9,7 @@ // definitions. // The following unique IDs are available: -// 7, 11, 12, 13, 14, 18, 19, 20, 22, 24, 26, 28, 29, 30, 32, 33, 34, 39, 37, +// 7, 11, 12, 13, 14, 18, 19, 20, 22, 24, 26, 28, 29, 30, 32, 33, 34, 39, // 38, 40, 41, 42, 46, 47, 48, 49, 51, 52, 58, 59, 69, 71, 72, 82, 84, 86, // 89, 91+ // @@ -108,6 +108,17 @@ "id": 68 }, + "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/ac/?callback=autocompleteCallback&q={searchTerms}", + "new_tab_url": "https://duckduckgo.com", + "type": "SEARCH_ENGINE_DUCKDUCKGO", + "id": 39 + }, + "google": { "name": "Google", "keyword": "google.com", diff --git a/components/search_engines/search_engine_type.h b/components/search_engines/search_engine_type.h index f619714..4e8ba58 100644 --- a/components/search_engines/search_engine_type.h +++ b/components/search_engines/search_engine_type.h @@ -60,6 +60,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. }; diff --git a/components/search_engines/template_url_prepopulate_data.cc b/components/search_engines/template_url_prepopulate_data.cc index 7257406..23cce2a 100644 --- a/components/search_engines/template_url_prepopulate_data.cc +++ b/components/search_engines/template_url_prepopulate_data.cc @@ -453,7 +453,7 @@ const PrepopulatedEngine* engines_UA[] = // United States const PrepopulatedEngine* engines_US[] = - { &google, &bing, &yahoo, &aol, &ask, }; + { &google, &bing, &yahoo, &aol, &ask, &duckduckgo }; // Uruguay const PrepopulatedEngine* engines_UY[] = @@ -483,7 +483,8 @@ const PrepopulatedEngine* engines_ZW[] = 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,