From 428f94062801f03ede9cbcc5861350427e5e3619 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Mon, 17 Jul 2023 21:05:04 +0200 Subject: [PATCH] add some new patches --- build/bromite_patches_list.txt | 5 ++- ...00Keep-Side-Panel-Companion-disabled.patch | 42 +++++++++++++++++++ .../00Lock-Profile-Cookie-Database.patch | 22 ++++++++++ ...Show-warnings-on-downloads-over-HTTP.patch | 26 ++++++++++++ 4 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 build/patches/00Keep-Side-Panel-Companion-disabled.patch create mode 100644 build/patches/00Lock-Profile-Cookie-Database.patch create mode 100644 build/patches/00Show-warnings-on-downloads-over-HTTP.patch diff --git a/build/bromite_patches_list.txt b/build/bromite_patches_list.txt index 0bea0b58..2ff69928 100644 --- a/build/bromite_patches_list.txt +++ b/build/bromite_patches_list.txt @@ -277,4 +277,7 @@ Viewport-Protection-Site-Setting.patch Timezone-customization.patch 00Disable-speechSynthesis-getVoices-API.patch 00Remove-support-for-device-memory-and-cpu-recovery.patch -00Log-dangling-attributes-in-some-html-elements.patch \ No newline at end of file +00Log-dangling-attributes-in-some-html-elements.patch +00Keep-Side-Panel-Companion-disabled.patch +00Lock-Profile-Cookie-Database.patch +00Show-warnings-on-downloads-over-HTTP.patch \ No newline at end of file diff --git a/build/patches/00Keep-Side-Panel-Companion-disabled.patch b/build/patches/00Keep-Side-Panel-Companion-disabled.patch new file mode 100644 index 00000000..36f3c0e9 --- /dev/null +++ b/build/patches/00Keep-Side-Panel-Companion-disabled.patch @@ -0,0 +1,42 @@ +From: uazo +Date: Mon, 17 Jul 2023 15:24:16 +0000 +Subject: Keep Side Panel Companion disabled + +--- + chrome/browser/companion/core/features.cc | 13 +++++++------ + 1 file changed, 7 insertions(+), 6 deletions(-) + +diff --git a/chrome/browser/companion/core/features.cc b/chrome/browser/companion/core/features.cc +--- a/chrome/browser/companion/core/features.cc ++++ b/chrome/browser/companion/core/features.cc +@@ -19,14 +19,14 @@ namespace features { + namespace internal { + // This differs from the search companion by providing a separate WebUI that + // contains untrusted content in an iframe. +-BASE_FEATURE(kSidePanelCompanion, +- "SidePanelCompanion", +- base::FEATURE_DISABLED_BY_DEFAULT); ++BASE_FEATURE(kSidePanelCompanion, // keep ++ "SidePanelCompanion", // disabled ++ base::FEATURE_DISABLED_BY_DEFAULT); // in bromite + // Dynamically enables the search companion if the user has experiments + // enabled. +-BASE_FEATURE(kCompanionEnabledByObservingExpsNavigations, +- "CompanionEnabledByObservingExpsNavigations", +- base::FEATURE_DISABLED_BY_DEFAULT); ++BASE_FEATURE(kCompanionEnabledByObservingExpsNavigations, // keep ++ "CompanionEnabledByObservingExpsNavigations", // disabled ++ base::FEATURE_DISABLED_BY_DEFAULT); // in bromite + } // namespace internal + + } // namespace features +@@ -39,6 +39,7 @@ const char kDisableCheckUserPermissionsForCompanion[] = + const char kForceCompanionPinnedState[] = "force-companion-pinned-state"; + + bool ShouldOverrideCheckingUserPermissionsForCompanion() { ++ if ((true)) return false; + base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); + return command_line->HasSwitch(kDisableCheckUserPermissionsForCompanion); + } +-- +2.25.1 diff --git a/build/patches/00Lock-Profile-Cookie-Database.patch b/build/patches/00Lock-Profile-Cookie-Database.patch new file mode 100644 index 00000000..71f40cfc --- /dev/null +++ b/build/patches/00Lock-Profile-Cookie-Database.patch @@ -0,0 +1,22 @@ +From: uazo +Date: Mon, 17 Jul 2023 15:24:54 +0000 +Subject: Lock Profile Cookie Database + +--- + chrome/browser/browser_features.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/chrome/browser/browser_features.cc b/chrome/browser/browser_features.cc +--- a/chrome/browser/browser_features.cc ++++ b/chrome/browser/browser_features.cc +@@ -201,7 +201,7 @@ BASE_FEATURE(kAppBoundEncryptionMetrics, + // TODO(crbug.com/1430226): Remove after fully launched. + BASE_FEATURE(kLockProfileCookieDatabase, + "LockProfileCookieDatabase", +- base::FEATURE_DISABLED_BY_DEFAULT); ++ base::FEATURE_ENABLED_BY_DEFAULT); + #endif + + // Enables showing the email of the flex org admin that setup CBCM in the +-- +2.25.1 diff --git a/build/patches/00Show-warnings-on-downloads-over-HTTP.patch b/build/patches/00Show-warnings-on-downloads-over-HTTP.patch new file mode 100644 index 00000000..03507fed --- /dev/null +++ b/build/patches/00Show-warnings-on-downloads-over-HTTP.patch @@ -0,0 +1,26 @@ +From: uazo +Date: Mon, 17 Jul 2023 15:26:11 +0000 +Subject: Show warnings on downloads over HTTP + +--- + chrome/common/chrome_features.cc | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/chrome/common/chrome_features.cc b/chrome/common/chrome_features.cc +--- a/chrome/common/chrome_features.cc ++++ b/chrome/common/chrome_features.cc +@@ -1136,9 +1136,9 @@ BASE_FEATURE(kTreatUnsafeDownloadsAsActive, + base::FEATURE_ENABLED_BY_DEFAULT); + + // Show warnings on downloads not delivered over HTTPS. +-BASE_FEATURE(kInsecureDownloadWarnings, +- "InsecureDownloadWarnings", +- base::FEATURE_DISABLED_BY_DEFAULT); ++BASE_FEATURE(kInsecureDownloadWarnings, // enabled by ++ "InsecureDownloadWarnings", // default ++ base::FEATURE_ENABLED_BY_DEFAULT); // in bromite + + // TrustSafetySentimentSurvey + #if !BUILDFLAG(IS_ANDROID) +-- +2.25.1