From: Tommy Webb 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