From ba217d8da4902d9f60c12309abb9e265eeff15b8 Mon Sep 17 00:00:00 2001 From: RoyalOughtness <129108030+RoyalOughtness@users.noreply.github.com> Date: Wed, 1 Oct 2025 18:05:06 -0700 Subject: [PATCH] fix: hide safety hub --- patches/adjust-user-preferences.patch | 84 +++++++++++++++------------ 1 file changed, 46 insertions(+), 38 deletions(-) diff --git a/patches/adjust-user-preferences.patch b/patches/adjust-user-preferences.patch index 58ad0b16..818231e0 100644 --- a/patches/adjust-user-preferences.patch +++ b/patches/adjust-user-preferences.patch @@ -11,10 +11,10 @@ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, e See the License for the specific language governing permissions and limitations under the License. --- diff --git a/chrome/browser/extensions/api/settings_private/prefs_util.cc b/chrome/browser/extensions/api/settings_private/prefs_util.cc -index ecefced855ae4..43eff9017d42e 100644 +index ab19b6cb94e9d..b9f99abf97a1c 100644 --- a/chrome/browser/extensions/api/settings_private/prefs_util.cc +++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc -@@ -181,6 +181,22 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetAllowlistedKeys() { +@@ -182,6 +182,22 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetAllowlistedKeys() { } s_allowlist = new PrefsUtil::TypedPrefMap(); @@ -38,7 +38,7 @@ index ecefced855ae4..43eff9017d42e 100644 (*s_allowlist)[::embedder_support::kAlternateErrorPagesEnabled] = settings_api::PrefType::kBoolean; diff --git a/chrome/browser/resources/new_tab_page_incognito_guest/incognito_tab.html b/chrome/browser/resources/new_tab_page_incognito_guest/incognito_tab.html -index 06914746fb87c..a67593cc18ecc 100644 +index 87b28c196eb30..5d3a56f226044 100644 --- a/chrome/browser/resources/new_tab_page_incognito_guest/incognito_tab.html +++ b/chrome/browser/resources/new_tab_page_incognito_guest/incognito_tab.html @@ -22,12 +22,6 @@ document.querySelector('#incognitothemecss').href = @@ -88,7 +88,7 @@ index 3fce5bc069911..c8ce8d033c500 100644 - - diff --git a/chrome/browser/resources/settings/appearance_page/appearance_page.html b/chrome/browser/resources/settings/appearance_page/appearance_page.html -index d3b9a39082f59..19fe0537dbfde 100644 +index f4534420339a7..49393040e0741 100644 --- a/chrome/browser/resources/settings/appearance_page/appearance_page.html +++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html @@ -118,6 +118,11 @@ @@ -120,7 +120,7 @@ index 47ee2c73fc844..575caacdb6afe 100644
diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.html b/chrome/browser/resources/settings/privacy_page/privacy_page.html -index 0496c9046b553..f8113cc56c33c 100644 +index ad81cf875bbba..6885fd10175de 100644 --- a/chrome/browser/resources/settings/privacy_page/privacy_page.html +++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html -@@ -96,8 +96,8 @@ +@@ -83,8 +83,8 @@