Update Yandex patch

i9-gost
Arkady L. Shane 1 year ago
parent c9ff966615
commit 38265b4a94
Signed by: tigro
GPG Key ID: 9C7900103E1C4F8B

@ -1,6 +1,13 @@
diff -urN chromium-114.0.5735.133.orig/components/search_engines/prepopulated_engines.json chromium-114.0.5735.133/components/search_engines/prepopulated_engines.json
--- chromium-114.0.5735.133.orig/components/search_engines/prepopulated_engines.json 2023-06-30 16:00:39.781216875 +0300
+++ chromium-114.0.5735.133/components/search_engines/prepopulated_engines.json 2023-06-30 16:10:06.030718785 +0300
commit f6f27ebf8f82990da4c5fdff103eb62586ee12d9
Author: tigro <arkadiy.sheyn@softline.com>
Date: Sun Jul 23 09:57:21 2023 +0300
Set Yandex as default search engine
diff --git a/components/search_engines/prepopulated_engines.json b/components/search_engines/prepopulated_engines.json
index e672076a3..1ef0e7504 100644
--- a/components/search_engines/prepopulated_engines.json
+++ b/components/search_engines/prepopulated_engines.json
@@ -560,7 +560,7 @@
"suggest_url": "https://suggest.yandex.by/suggest-ff.cgi?part={searchTerms}&{google:cursorPosition}",
"image_url": "https://yandex.by/images/search/?rpt=imageview",
@ -54,10 +61,11 @@ diff -urN chromium-114.0.5735.133.orig/components/search_engines/prepopulated_en
"type": "SEARCH_ENGINE_YANDEX",
"id": 15
},
diff -urN chromium-114.0.5735.133.orig/components/search_engines/template_url_prepopulate_data.cc chromium-114.0.5735.133/components/search_engines/template_url_prepopulate_data.cc
--- chromium-114.0.5735.133.orig/components/search_engines/template_url_prepopulate_data.cc 2023-06-30 16:00:39.780216890 +0300
+++ chromium-114.0.5735.133/components/search_engines/template_url_prepopulate_data.cc 2023-06-30 16:12:58.769100093 +0300
@@ -29,6 +29,7 @@
diff --git a/components/search_engines/template_url_prepopulate_data.cc b/components/search_engines/template_url_prepopulate_data.cc
index efaa4b294..7f25a36e8 100644
--- a/components/search_engines/template_url_prepopulate_data.cc
+++ b/components/search_engines/template_url_prepopulate_data.cc
@@ -29,6 +29,7 @@ namespace {
// Default (for countries with no better engine set)
const PrepopulatedEngine* const engines_default[] = {
@ -65,7 +73,7 @@ diff -urN chromium-114.0.5735.133.orig/components/search_engines/template_url_pr
&google,
&bing,
&yahoo,
@@ -156,8 +157,8 @@
@@ -156,8 +157,8 @@ const PrepopulatedEngine* const engines_BR[] = {
// Belarus
const PrepopulatedEngine* const engines_BY[] = {
@ -75,7 +83,7 @@ diff -urN chromium-114.0.5735.133.orig/components/search_engines/template_url_pr
&mail_ru,
&bing,
&duckduckgo,
@@ -435,10 +436,10 @@
@@ -435,10 +436,10 @@ const PrepopulatedEngine* const engines_IN[] = {
// Iraq
const PrepopulatedEngine* const engines_IQ[] = {
@ -87,7 +95,7 @@ diff -urN chromium-114.0.5735.133.orig/components/search_engines/template_url_pr
&petal_search,
};
@@ -525,8 +526,8 @@
@@ -525,8 +526,8 @@ const PrepopulatedEngine* const engines_KW[] = {
// Kazakhstan
const PrepopulatedEngine* const engines_KZ[] = {
@ -97,7 +105,7 @@ diff -urN chromium-114.0.5735.133.orig/components/search_engines/template_url_pr
&mail_ru,
&bing,
&duckduckgo,
@@ -894,8 +895,8 @@
@@ -894,8 +895,8 @@ const PrepopulatedEngine* const engines_TN[] = {
// Turkey
const PrepopulatedEngine* const engines_TR[] = {
@ -107,13 +115,13 @@ diff -urN chromium-114.0.5735.133.orig/components/search_engines/template_url_pr
&yahoo_tr,
&bing,
&duckduckgo,
@@ -1382,12 +1383,15 @@
@@ -1388,12 +1389,15 @@ std::vector<std::unique_ptr<TemplateURLData>> GetPrepopulatedEngines(
t_urls = GetPrepopulationSetFromCountryID(
country_codes::GetCountryIDFromPrefs(prefs));
}
- if (default_search_provider_index) {
- const auto itr =
- base::ranges::find(t_urls, google.id, &TemplateURLData::prepopulate_id);
- base::ranges::find(t_urls, yandex_ru.id, &TemplateURLData::prepopulate_id);
- *default_search_provider_index =
- itr == t_urls.end() ? 0 : std::distance(t_urls.begin(), itr);
- }

Loading…
Cancel
Save