Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions patches/force-third-party-ntp.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Copyright 2024-2025 The Trivalent Authors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
---
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
index 86564e6286685..e1e56774701a3 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -175,13 +175,8 @@ struct NewTabURLDetails {
#if BUILDFLAG(IS_ANDROID)
const GURL local_url;
#else
- const bool default_is_google = DefaultSearchProviderIsGoogle(profile);
- const GURL local_url(default_is_google
- ? chrome::kChromeUINewTabPageURL
- : chrome::kChromeUINewTabPageThirdPartyURL);
- if (default_is_google) {
- return NewTabURLDetails(local_url, NEW_TAB_URL_VALID);
- }
+ const GURL local_url(chrome::kChromeUINewTabPageThirdPartyURL);
+ return NewTabURLDetails(local_url, NEW_TAB_URL_VALID);
#endif

const TemplateURL* template_url =