Update privacy_sandbox_settings.cc

This commit is contained in:
Alexander David Frick 2022-01-20 09:26:11 -06:00 committed by GitHub
parent ad4a7e4f69
commit 9655ef6ad4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,8 @@ PrivacySandboxSettings::PrivacySandboxSettings(
PrivacySandboxSettings::~PrivacySandboxSettings() = default;
bool PrivacySandboxSettings::IsFlocAllowed() const {
return false;
return pref_service_->GetBoolean(prefs::kPrivacySandboxFlocEnabled) &&
pref_service_->GetBoolean(prefs::kPrivacySandboxApisEnabled);
}
bool PrivacySandboxSettings::IsFlocAllowedForContext(