Rebase privacy sandbox files

This commit is contained in:
Alexander David Frick 2022-02-16 00:46:43 -06:00 committed by GitHub
parent 9c6d474f34
commit ae833f9d9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,18 @@ extern const char kPrivacySandboxFlocEnabled[] = "privacy_sandbox.floc_enabled";
extern const char kPrivacySandboxFledgeJoinBlocked[] =
"privacy_sandbox.fledge_join_blocked";
extern const char kPrivacySandboxNoticeDisplayed[] =
"privacy_sandbox.notice_displayed";
extern const char kPrivacySandboxConsentDecisionMade[] =
"privacy_sandbox.consent_decision_made";
extern const char kPrivacySandboxNoConfirmationSandboxDisabled[] =
"privacy_sandbox.no_confirmation_sandbox_disabled";
extern const char kPrivacySandboxDisabledInsufficientConfirmation[] =
"privacy_sandbox.disabled_insufficient_confirmation";
} // namespace prefs
namespace privacy_sandbox {
@ -51,6 +63,13 @@ void RegisterProfilePrefs(PrefRegistrySimple* registry) {
prefs::kPrivacySandboxFlocEnabled, false,
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
registry->RegisterDictionaryPref(prefs::kPrivacySandboxFledgeJoinBlocked);
registry->RegisterBooleanPref(prefs::kPrivacySandboxNoticeDisplayed, false);
registry->RegisterBooleanPref(prefs::kPrivacySandboxConsentDecisionMade,
false);
registry->RegisterBooleanPref(
prefs::kPrivacySandboxNoConfirmationSandboxDisabled, false);
registry->RegisterBooleanPref(
prefs::kPrivacySandboxDisabledInsufficientConfirmation, false);
}
} // namespace privacy_sandbox