23 lines
1.0 KiB
Diff
23 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Zoraver Kang <zkang@wpi.edu>
|
|
Date: Sat, 17 Aug 2019 15:53:50 -0400
|
|
Subject: [PATCH] set default search engine to DuckDuckGo
|
|
|
|
---
|
|
components/search_engines/template_url_prepopulate_data.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/components/search_engines/template_url_prepopulate_data.cc b/components/search_engines/template_url_prepopulate_data.cc
|
|
index fb459bc4dfedb..691c22fe6d866 100644
|
|
--- a/components/search_engines/template_url_prepopulate_data.cc
|
|
+++ b/components/search_engines/template_url_prepopulate_data.cc
|
|
@@ -1384,7 +1384,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);
|
|
}
|