mirror of
https://abf.rosa.ru/djam/chromium-browser-stable-test.git
synced 2025-02-23 17:42:45 +00:00
Fix openning new tab
It tried to open chrome://new-tab-page-third-party and failed
This commit is contained in:
parent
d57692f7aa
commit
9c40a479c6
1 changed files with 19 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
From 2021de782f99d2276005d57b151f30759ab2c7f3 Mon Sep 17 00:00:00 2001
|
||||
From 04d1d9b5e32defe38d9f55c13a70c6179aa6e13b Mon Sep 17 00:00:00 2001
|
||||
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
||||
Date: Thu, 26 May 2022 20:47:28 +0300
|
||||
Subject: [PATCH] Functional new tab page with non-Google search engines
|
||||
|
@ -6,9 +6,25 @@ Subject: [PATCH] Functional new tab page with non-Google search engines
|
|||
If e.g Yandex is chosen as a search engine, chrome://new-tab-page is replaced with chrome://new-tab-page-third-party
|
||||
which does not allow to add new items. Use chrome://new-tab-page.
|
||||
---
|
||||
chrome/browser/search/search.cc | 4 +---
|
||||
chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
2 files changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
|
||||
index 5b7e75599e..8302ba016e 100644
|
||||
--- a/chrome/browser/search/search.cc
|
||||
+++ b/chrome/browser/search/search.cc
|
||||
@@ -179,9 +179,7 @@ struct NewTabURLDetails {
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
const GURL local_url;
|
||||
#else
|
||||
- const GURL local_url(DefaultSearchProviderIsGoogle(profile)
|
||||
- ? chrome::kChromeUINewTabPageURL
|
||||
- : chrome::kChromeUINewTabPageThirdPartyURL);
|
||||
+ const GURL local_url(chrome::kChromeUINewTabPageURL);
|
||||
#endif
|
||||
|
||||
if (ShouldShowLocalNewTab(profile))
|
||||
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
||||
index d29dc6e3fb..8173d0fbbe 100644
|
||||
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
||||
|
@ -23,5 +39,5 @@ index d29dc6e3fb..8173d0fbbe 100644
|
|||
if (base::FeatureList::IsEnabled(features::kWebUIFeedback)) {
|
||||
if (url.host_piece() == chrome::kChromeUIFeedbackHost)
|
||||
--
|
||||
2.33.2
|
||||
2.35.2
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue