From 2292d6f3ff54236e7821c044a474f312be2c6f8a Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Thu, 26 Sep 2024 10:08:14 +0200 Subject: [PATCH] Cromite Branding: improve settings ui: Modification to the settings ui with the aim of making it clearer (#1237) --- build/cromite_patches_list.txt | 1 + ...romite-Branding--improve-settings-ui.patch | 278 ++++++++++++++++++ 2 files changed, 279 insertions(+) create mode 100644 build/patches/Cromite-Branding--improve-settings-ui.patch diff --git a/build/cromite_patches_list.txt b/build/cromite_patches_list.txt index 2d1e30cb2..70cde779f 100644 --- a/build/cromite_patches_list.txt +++ b/build/cromite_patches_list.txt @@ -294,6 +294,7 @@ Add-a-GN-flag-to-disable-trybot-verification.patch Override-the-MV2-deprecation.patch Enable-ClickToCall.patch Remove-sideloading-of-version-dll.patch +Cromite-Branding--improve-settings-ui.patch # temporary or wip patches Temp-PerformanceNavigationTiming-privacy-fix.patch diff --git a/build/patches/Cromite-Branding--improve-settings-ui.patch b/build/patches/Cromite-Branding--improve-settings-ui.patch new file mode 100644 index 000000000..99b62a085 --- /dev/null +++ b/build/patches/Cromite-Branding--improve-settings-ui.patch @@ -0,0 +1,278 @@ +From: uazo +Date: Sat, 21 Sep 2024 15:32:02 +0000 +Subject: Cromite Branding: improve settings ui + +Modification to the settings ui with the aim of making it clearer. + +License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html +--- + chrome/android/chrome_java_resources.gni | 2 +- + .../android/java/res/xml/main_preferences.xml | 4 +- + .../res/xml/privacy_preferences_cromite.xml | 190 ++++++++++++++++++ + .../privacy/settings/PrivacySettings.java | 2 +- + .../Cromite-settings-ui.grdp | 15 ++ + 5 files changed, 209 insertions(+), 4 deletions(-) + create mode 100644 chrome/android/java/res/xml/privacy_preferences_cromite.xml + create mode 100644 chrome/browser/ui/android/strings/cromite_android_chrome_strings_grd/Cromite-settings-ui.grdp + +diff --git a/chrome/android/chrome_java_resources.gni b/chrome/android/chrome_java_resources.gni +--- a/chrome/android/chrome_java_resources.gni ++++ b/chrome/android/chrome_java_resources.gni +@@ -642,7 +642,7 @@ chrome_java_resources = [ + "java/res/xml/personalize_google_services_preferences.xml", + "java/res/xml/phone_as_a_security_key_accessory_filter.xml", + "java/res/xml/incognito_preferences.xml", +- "java/res/xml/privacy_preferences.xml", ++ "java/res/xml/privacy_preferences.xml", "java/res/xml/privacy_preferences_cromite.xml", + "java/res/xml/referer_policy_preferences.xml", + "java/res/layout/radio_button_group_referer_policy_preference.xml", + "java/res/xml/search_widget_info.xml", +diff --git a/chrome/android/java/res/xml/main_preferences.xml b/chrome/android/java/res/xml/main_preferences.xml +--- a/chrome/android/java/res/xml/main_preferences.xml ++++ b/chrome/android/java/res/xml/main_preferences.xml +@@ -7,7 +7,7 @@ + android:key="sync_promo" + android:order="0"/> + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +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 +--- 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 +@@ -129,7 +129,7 @@ public class PrivacySettings extends ChromeBaseSettingsFragment + public void onCreatePreferencesCromite(Bundle savedInstanceState, String rootKey) { + getActivity().setTitle(R.string.prefs_privacy_security); + +- SettingsUtils.addPreferencesFromResource(this, R.xml.privacy_preferences); ++ SettingsUtils.addPreferencesFromResource(this, R.xml.privacy_preferences_cromite); + + Preference fpProtectionPreference = findPreference(PREF_FP_PROTECTION); + fpProtectionPreference.setVisible(shouldShowFpProtectionUI()); +diff --git a/chrome/browser/ui/android/strings/cromite_android_chrome_strings_grd/Cromite-settings-ui.grdp b/chrome/browser/ui/android/strings/cromite_android_chrome_strings_grd/Cromite-settings-ui.grdp +new file mode 100644 +--- /dev/null ++++ b/chrome/browser/ui/android/strings/cromite_android_chrome_strings_grd/Cromite-settings-ui.grdp +@@ -0,0 +1,15 @@ ++ ++ ++ ++ Browsing data ++ ++ ++ Data exposed to the websites ++ ++ ++ Incognito mode ++ ++ ++ Data exposed in the device ++ ++ +--