mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-25 16:50:07 -07:00
54 lines
2.2 KiB
Diff
54 lines
2.2 KiB
Diff
--- a/chrome/browser/search/search.cc
|
|
+++ b/chrome/browser/search/search.cc
|
|
@@ -196,29 +196,7 @@ struct NewTabURLDetails {
|
|
|
|
const GURL local_url(chrome::kChromeSearchLocalNtpUrl);
|
|
|
|
- if (ShouldShowLocalNewTab(profile))
|
|
- return NewTabURLDetails(local_url, NEW_TAB_URL_VALID);
|
|
-
|
|
- const TemplateURL* template_url =
|
|
- GetDefaultSearchProviderTemplateURL(profile);
|
|
- if (!profile || !template_url)
|
|
- return NewTabURLDetails(local_url, NEW_TAB_URL_BAD);
|
|
-
|
|
- GURL search_provider_url(template_url->new_tab_url_ref().ReplaceSearchTerms(
|
|
- TemplateURLRef::SearchTermsArgs(base::string16()),
|
|
- UIThreadSearchTermsData(profile)));
|
|
-
|
|
- if (ShouldDelayRemoteNTP(search_provider_url, profile))
|
|
- return NewTabURLDetails(local_url, NEW_TAB_URL_VALID);
|
|
-
|
|
- if (!search_provider_url.is_valid())
|
|
- return NewTabURLDetails(local_url, NEW_TAB_URL_NOT_SET);
|
|
- if (!search_provider_url.SchemeIsCryptographic())
|
|
- return NewTabURLDetails(local_url, NEW_TAB_URL_INSECURE);
|
|
- if (!IsURLAllowedForSupervisedUser(search_provider_url, profile))
|
|
- return NewTabURLDetails(local_url, NEW_TAB_URL_BLOCKED);
|
|
-
|
|
- return NewTabURLDetails(search_provider_url, NEW_TAB_URL_VALID);
|
|
+ return NewTabURLDetails(local_url, NEW_TAB_URL_VALID);
|
|
}
|
|
|
|
const GURL url;
|
|
--- a/components/ntp_snippets/features.cc
|
|
+++ b/components/ntp_snippets/features.cc
|
|
@@ -41,7 +41,7 @@ const base::Feature* const kAllFeatures[
|
|
&kRemoteSuggestionsBackendFeature};
|
|
|
|
const base::Feature kArticleSuggestionsFeature{
|
|
- "NTPArticleSuggestions", base::FEATURE_ENABLED_BY_DEFAULT};
|
|
+ "NTPArticleSuggestions", base::FEATURE_DISABLED_BY_DEFAULT};
|
|
|
|
const base::Feature kRemoteSuggestionsEmulateM58FetchingSchedule{
|
|
"RemoteSuggestionsEmulateM58FetchingSchedule",
|
|
@@ -71,7 +71,7 @@ const char kNotificationsDailyLimit[] =
|
|
const char kNotificationsIgnoredLimitParam[] = "ignored_limit";
|
|
|
|
const base::Feature kKeepPrefetchedContentSuggestions{
|
|
- "KeepPrefetchedContentSuggestions", base::FEATURE_ENABLED_BY_DEFAULT};
|
|
+ "KeepPrefetchedContentSuggestions", base::FEATURE_DISABLED_BY_DEFAULT};
|
|
|
|
const base::Feature kContentSuggestionsDebugLog{
|
|
"ContentSuggestionsDebugLog", base::FEATURE_DISABLED_BY_DEFAULT};
|