Skip to content

Commit

Permalink
search_engines: make DuckDuckGo the default search engine
Browse files Browse the repository at this point in the history
  • Loading branch information
jengelh committed Nov 14, 2023
1 parent 9f83179 commit 272ac73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/search_engines/template_url_prepopulate_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ struct EngineAndTier {

// Default (for countries with no better engine set)
constexpr EngineAndTier engines_default[] = {
{SearchEngineTier::kTopEngines, &duckduckgo},
{SearchEngineTier::kTopEngines, &google},
{SearchEngineTier::kTopEngines, &bing},
{SearchEngineTier::kTopEngines, &yahoo},
Expand Down Expand Up @@ -1776,7 +1777,7 @@ std::vector<std::unique_ptr<TemplateURLData>> GetPrepopulatedEngines(
}
if (default_search_provider_index) {
const auto itr =
base::ranges::find(t_urls, google.id, &TemplateURLData::prepopulate_id);
base::ranges::find(t_urls, duckduckgo.id, &TemplateURLData::prepopulate_id);
*default_search_provider_index =
itr == t_urls.end() ? 0 : std::distance(t_urls.begin(), itr);
}
Expand Down

0 comments on commit 272ac73

Please sign in to comment.