From 61ec2cf3be06d11eb2363f74f906263b116ea0bc Mon Sep 17 00:00:00 2001 From: brave-builds Date: Thu, 10 Oct 2024 13:47:17 +0000 Subject: [PATCH] Uplift of #25907 (squashed) to beta --- .../settings/brave_appearance_page/tabs.html | 9 +++++++++ .../settings/brave_appearance_page/tabs.ts | 6 ++++++ .../settings/brave_overrides/index.ts | 1 + .../brave_overrides/performance_page.ts | 18 ++++++++++++++++++ browser/resources/settings/sources.gni | 1 + chromium_src/chrome/common/url_constants.h | 2 +- 6 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 browser/resources/settings/brave_overrides/performance_page.ts diff --git a/browser/resources/settings/brave_appearance_page/tabs.html b/browser/resources/settings/brave_appearance_page/tabs.html index 4fb12996350b..7ef15246cdfc 100644 --- a/browser/resources/settings/brave_appearance_page/tabs.html +++ b/browser/resources/settings/brave_appearance_page/tabs.html @@ -1,6 +1,15 @@ + + + + { + const discardRingTreatmentToggleButton = + templateContent.querySelector('#discardRingTreatmentToggleButton') + if (discardRingTreatmentToggleButton) { + discardRingTreatmentToggleButton.remove() + } else { + console.error('[Settings] Could not find discardRingTreatmentToggleButton') + } + } +}) diff --git a/browser/resources/settings/sources.gni b/browser/resources/settings/sources.gni index 12280ddde9ce..5d5e65e98fc0 100644 --- a/browser/resources/settings/sources.gni +++ b/browser/resources/settings/sources.gni @@ -84,6 +84,7 @@ brave_settings_non_web_component_files = [ "brave_overrides/passwords_section.ts", "brave_overrides/payments_section.ts", "brave_overrides/people_page.ts", + "brave_overrides/performance_page.ts", "brave_overrides/personalization_options.ts", "brave_overrides/printing_page.ts", "brave_overrides/privacy_page.ts", diff --git a/chromium_src/chrome/common/url_constants.h b/chromium_src/chrome/common/url_constants.h index 1340760c5bdf..1b24faee702c 100644 --- a/chromium_src/chrome/common/url_constants.h +++ b/chromium_src/chrome/common/url_constants.h @@ -168,7 +168,7 @@ inline constexpr char kCrashReasonFeedbackDisplayedURL[] = // "Learn more" URL for the inactive tabs appearance setting. inline constexpr char16_t kDiscardRingTreatmentLearnMoreUrl[] = - u"https://support.brave.com/"; + u"https://support.brave.com/hc/en-us/articles/30938249371277"; // "Learn more" URL for the "Do not track" setting in the privacy section. inline constexpr char16_t kDoNotTrackLearnMoreURL[] =