Commit f2e90dec authored by Sean Harrison's avatar Sean Harrison Committed by Chromium LUCI CQ

[Privacy Sandbox] Add additional pref, add OWNERS

Add an additional pref to indicate whether the device in question
has the privacy sandbox settings UI available.

Modify the 2 existing prefs to be syncing.

Create an OWNERS file for chrome/browser/privacy_sandbox, and add some
members of the chrome friendly settings team to it.

Bug: 1152336
Change-Id: Ie39a763a703fc2c2ee092d14513fca31784037ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2565572Reviewed-by: default avatarVasilii Sukhanov <vasilii@chromium.org>
Reviewed-by: default avatarMartin Šrámek <msramek@chromium.org>
Commit-Queue: Sean Harrison <harrisonsean@chromium.org>
Cr-Commit-Position: refs/heads/master@{#832294}
parent b3c40173
andzaytsev@google.com
harrisonsean@chromium.org
msramek@chromium.org
sauski@google.com
# COMPONENT: UI>Settings>Privacy
# TEAM: chrome-friendly-settings@google.com
...@@ -13,16 +13,23 @@ namespace prefs { ...@@ -13,16 +13,23 @@ namespace prefs {
const char kPrivacySandboxApisEnabled[] = "privacy_sandbox.apis_enabled"; const char kPrivacySandboxApisEnabled[] = "privacy_sandbox.apis_enabled";
const char kPrivacySandboxManauallyControlled[] = const char kPrivacySandboxManuallyControlled[] =
"privacy_sandbox.manually_controlled"; "privacy_sandbox.manually_controlled";
const char kPrivacySandboxUiAvailable[] = "privacy_sandbox.ui_available";
} // namespace prefs } // namespace prefs
namespace privacy_sandbox { namespace privacy_sandbox {
void RegisterProfilePrefs(PrefRegistrySimple* registry) { void RegisterProfilePrefs(PrefRegistrySimple* registry) {
registry->RegisterBooleanPref(prefs::kPrivacySandboxApisEnabled, false); registry->RegisterBooleanPref(
registry->RegisterBooleanPref(prefs::kPrivacySandboxManauallyControlled, prefs::kPrivacySandboxApisEnabled, false,
false); user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
registry->RegisterBooleanPref(
prefs::kPrivacySandboxManuallyControlled, false,
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
registry->RegisterBooleanPref(prefs::kPrivacySandboxUiAvailable, false);
} }
} // namespace privacy_sandbox } // namespace privacy_sandbox
...@@ -5,19 +5,23 @@ ...@@ -5,19 +5,23 @@
#ifndef CHROME_BROWSER_PRIVACY_SANDBOX_PRIVACY_SANDBOX_PREFS_H_ #ifndef CHROME_BROWSER_PRIVACY_SANDBOX_PRIVACY_SANDBOX_PREFS_H_
#define CHROME_BROWSER_PRIVACY_SANDBOX_PRIVACY_SANDBOX_PREFS_H_ #define CHROME_BROWSER_PRIVACY_SANDBOX_PRIVACY_SANDBOX_PREFS_H_
#include "components/prefs/pref_registry_simple.h" class PrefRegistrySimple;
namespace prefs { namespace prefs {
// Boolean that is true when Privacy Sandbox APIs are enabled. If the // Synced boolean that is true when Privacy Sandbox APIs are enabled. If the
// PrivacySandboxSettings feature is enabled, this Boolean is controlled by the // PrivacySandboxSettings feature is enabled, this Boolean is controlled by the
// associated UI; if it is disabled, it is controlled by third party cookie // associated UI; if it is disabled, it is controlled by third party cookie
// blocking settings. // blocking settings.
extern const char kPrivacySandboxApisEnabled[]; extern const char kPrivacySandboxApisEnabled[];
// Boolean that indicates if a user has manually toggled the settings associated // Synced boolean that indicates if a user has manually toggled the settings
// with the PrivacySandboxSettings feature. // associated with the PrivacySandboxSettings feature.
extern const char kPrivacySandboxManauallyControlled[]; extern const char kPrivacySandboxManuallyControlled[];
// Boolean to indicate whether or not the UI for Privacy Sandbox settings has
// been made available on the device.
extern const char kPrivacySandboxUiAvailable[];
} // namespace prefs } // namespace prefs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment