From 7b0784a8ca4cc6e04a2e9f287964f6346f3c6a14 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Sun, 9 Jun 2024 14:35:30 +0200 Subject: [PATCH] Added new patches - Use BoringSSL for RandBytes - Restore chrome password store --- build/cromite_patches_list.txt | 2 + .../Restore-chrome-password-store.patch | 35 ++++++++++++++ .../patches/Use-BoringSSL-for-RandBytes.patch | 48 +++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 build/patches/Restore-chrome-password-store.patch create mode 100644 build/patches/Use-BoringSSL-for-RandBytes.patch diff --git a/build/cromite_patches_list.txt b/build/cromite_patches_list.txt index 40f25f05..d3722549 100644 --- a/build/cromite_patches_list.txt +++ b/build/cromite_patches_list.txt @@ -291,6 +291,8 @@ Enable-menu-on-reload-button.patch Enable-Global-Privacy-Control.patch Enable-Do-Not-Track-by-default.patch Media-fingerprinting-mitigations.patch +Use-BoringSSL-for-RandBytes.patch +Restore-chrome-password-store.patch Temp-PerformanceNavigationTiming-privacy-fix.patch Temp-disable-predictive-back-gesture.patch diff --git a/build/patches/Restore-chrome-password-store.patch b/build/patches/Restore-chrome-password-store.patch new file mode 100644 index 00000000..321c49e3 --- /dev/null +++ b/build/patches/Restore-chrome-password-store.patch @@ -0,0 +1,35 @@ +From: uazo +Date: Wed, 30 Sep 2020 07:40:01 +0000 +Subject: Restore chrome password store + +License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html +--- + chrome/browser/ui/android/strings/android_chrome_strings.grd | 2 +- + components/password_manager/core/browser/buildflags.gni | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chrome/browser/ui/android/strings/android_chrome_strings.grd +--- a/chrome/browser/ui/android/strings/android_chrome_strings.grd ++++ b/chrome/browser/ui/android/strings/android_chrome_strings.grd +@@ -713,7 +713,7 @@ CHAR_LIMIT guidelines: + Passwords + + +- Google Password Manager ++ Password Manager + + + Password saving is turned on by your administrator +diff --git a/components/password_manager/core/browser/buildflags.gni b/components/password_manager/core/browser/buildflags.gni +--- a/components/password_manager/core/browser/buildflags.gni ++++ b/components/password_manager/core/browser/buildflags.gni +@@ -9,7 +9,7 @@ declare_args() { + # The legacy password store backend is supported on android but usually disabled + # in favor of a downstream implementation. Important: the support for this flag + # is planned to be removed in November 2024. +- use_login_database_as_backend = !is_android ++ use_login_database_as_backend = true + } + + # Drawables from the downstream clank/ repository are +-- diff --git a/build/patches/Use-BoringSSL-for-RandBytes.patch b/build/patches/Use-BoringSSL-for-RandBytes.patch new file mode 100644 index 00000000..324d6c96 --- /dev/null +++ b/build/patches/Use-BoringSSL-for-RandBytes.patch @@ -0,0 +1,48 @@ +From: uazo +Date: Wed, 30 Sep 2020 07:40:01 +0000 +Subject: Use BoringSSL for RandBytes + +License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html +--- + base/rand_util_fuchsia.cc | 2 +- + base/rand_util_posix.cc | 2 +- + base/rand_util_win.cc | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/base/rand_util_fuchsia.cc b/base/rand_util_fuchsia.cc +--- a/base/rand_util_fuchsia.cc ++++ b/base/rand_util_fuchsia.cc +@@ -30,7 +30,7 @@ std::atomic g_use_boringssl; + + BASE_FEATURE(kUseBoringSSLForRandBytes, + "UseBoringSSLForRandBytes", +- FEATURE_DISABLED_BY_DEFAULT); ++ FEATURE_ENABLED_BY_DEFAULT); + + } // namespace + +diff --git a/base/rand_util_posix.cc b/base/rand_util_posix.cc +--- a/base/rand_util_posix.cc ++++ b/base/rand_util_posix.cc +@@ -163,7 +163,7 @@ std::atomic g_use_boringssl; + + BASE_FEATURE(kUseBoringSSLForRandBytes, + "UseBoringSSLForRandBytes", +- FEATURE_DISABLED_BY_DEFAULT); ++ FEATURE_ENABLED_BY_DEFAULT); + + } // namespace + +diff --git a/base/rand_util_win.cc b/base/rand_util_win.cc +--- a/base/rand_util_win.cc ++++ b/base/rand_util_win.cc +@@ -41,7 +41,7 @@ std::atomic g_use_boringssl; + + BASE_FEATURE(kUseBoringSSLForRandBytes, + "UseBoringSSLForRandBytes", +- FEATURE_DISABLED_BY_DEFAULT); ++ FEATURE_ENABLED_BY_DEFAULT); + + } // namespace + +--