LeOSium_old/patches/0001-Vanadium/0083-Hide-currently-no-op-p...

26 lines
1.4 KiB
Diff
Raw Normal View History

2023-11-18 11:23:04 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: fgei <fgei@gmail.com>
Date: Mon, 24 Jan 2022 19:22:26 +0000
Subject: [PATCH] Hide currently no-op preload settings
---
.../chrome/browser/privacy/settings/PrivacySettings.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/privacy/settings/PrivacySettings.java b/chrome/android/java/src/org/chromium/chrome/browser/privacy/settings/PrivacySettings.java
index 67c390408cd69..f97d64c38274d 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/privacy/settings/PrivacySettings.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/privacy/settings/PrivacySettings.java
@@ -145,6 +145,11 @@ public class PrivacySettings extends PreferenceFragmentCompat
(ChromeSwitchPreference) findPreference(PREF_CAN_MAKE_PAYMENT);
canMakePaymentPref.setOnPreferenceChangeListener(this);
+ Preference preloadPagesPreference = findPreference(PREF_PRELOAD_PAGES);
+ preloadPagesPreference.setSummary(
+ PreloadPagesSettingsFragment.getPreloadPagesSummaryString(getContext()));
+ getPreferenceScreen().removePreference(preloadPagesPreference);
+
ChromeSwitchPreference httpsFirstModePref =
(ChromeSwitchPreference) findPreference(PREF_HTTPS_FIRST_MODE);
httpsFirstModePref.setVisible(