LeOSium_old/patches/0003-LeOS/40-59/40 - Disable-Privacy-Sandbo...

27 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-11-18 11:23:04 +01:00
From: Tommy Webb <tommy@calyxinstitute.org>
Date: Wed, 8 Mar 2023 14:37:56 -0500
Subject: Disable Privacy Sandbox feature
Always return that Privacy Sandbox is restricted. This disables the
feature and removes it from the settings UI.
Change-Id: Ia74053b190d14e5e98db68f0cea81a32673e0453
---
.../browser/privacy_sandbox/privacy_sandbox_settings_delegate.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/chrome/browser/privacy_sandbox/privacy_sandbox_settings_delegate.cc b/chrome/browser/privacy_sandbox/privacy_sandbox_settings_delegate.cc
--- a/chrome/browser/privacy_sandbox/privacy_sandbox_settings_delegate.cc
+++ b/chrome/browser/privacy_sandbox/privacy_sandbox_settings_delegate.cc
@@ -45,6 +45,7 @@ PrivacySandboxSettingsDelegate::PrivacySandboxSettingsDelegate(Profile* profile)
PrivacySandboxSettingsDelegate::~PrivacySandboxSettingsDelegate() = default;
bool PrivacySandboxSettingsDelegate::IsPrivacySandboxRestricted() const {
+ if ((true)) return true;
// If the Sandbox was ever reported as restricted, it is always restricted.
// TODO (crbug.com/1428546): Adjust when we have a graduation flow.
if (profile_->GetPrefs()->GetBoolean(prefs::kPrivacySandboxM1Restricted)) {
--
2.40.1