Commit 527bcdc0 authored by Michael Giuffrida's avatar Michael Giuffrida Committed by Commit Bot

Move SafeSites policy pref to //components/policy

The pref for the Safe Sites filter, kSafeSitesFilterBehavior, should be
accessible from //components/policy, where the filter itself will check
it once implemented.

Note that this policy's pref is unused until the follow-up CL.

Bug: 819405
Change-Id: If87877488067ee008f16d2dc848f5e2ab01de25f
Reviewed-on: https://chromium-review.googlesource.com/1117877Reviewed-by: default avatarRamin Halavati <rhalavati@chromium.org>
Reviewed-by: default avatarJulian Pastarmov <pastarmovj@chromium.org>
Commit-Queue: Michael Giuffrida <michaelpg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579331}
parent 420d3c1f
...@@ -306,7 +306,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = { ...@@ -306,7 +306,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = {
prefs::kPasswordProtectionChangePasswordURL, prefs::kPasswordProtectionChangePasswordURL,
base::Value::Type::STRING}, base::Value::Type::STRING},
{ key::kSafeSitesFilterBehavior, { key::kSafeSitesFilterBehavior,
prefs::kSafeSitesFilterBehavior, policy_prefs::kSafeSitesFilterBehavior,
base::Value::Type::INTEGER}, base::Value::Type::INTEGER},
#if defined(OS_POSIX) #if defined(OS_POSIX)
{ key::kNtlmV2Enabled, { key::kNtlmV2Enabled,
......
...@@ -231,7 +231,6 @@ const char* incognito_whitelist[] = { ...@@ -231,7 +231,6 @@ const char* incognito_whitelist[] = {
#endif #endif
prefs::kForceGoogleSafeSearch, prefs::kForceYouTubeRestrict, prefs::kForceGoogleSafeSearch, prefs::kForceYouTubeRestrict,
prefs::kForceSessionSync, prefs::kAllowedDomainsForApps, prefs::kForceSessionSync, prefs::kAllowedDomainsForApps,
prefs::kSafeSitesFilterBehavior,
#if defined(OS_LINUX) && !defined(OS_CHROMEOS) #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
prefs::kUsesSystemTheme, prefs::kUsesSystemTheme,
#endif #endif
......
...@@ -915,10 +915,6 @@ const char kForceSessionSync[] = "settings.history_recorded"; ...@@ -915,10 +915,6 @@ const char kForceSessionSync[] = "settings.history_recorded";
// only using an account that belongs to one of the domains from this pref. // only using an account that belongs to one of the domains from this pref.
const char kAllowedDomainsForApps[] = "settings.allowed_domains_for_apps"; const char kAllowedDomainsForApps[] = "settings.allowed_domains_for_apps";
// Enum specifying if/how the safesites content filter should be applied.
// See the SafeSitesFilterBehavior policy for details.
const char kSafeSitesFilterBehavior[] = "settings.safe_sites_filter_behavior";
#if defined(OS_LINUX) && !defined(OS_CHROMEOS) #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
// Linux specific preference on whether we should match the system theme. // Linux specific preference on whether we should match the system theme.
const char kUsesSystemTheme[] = "extensions.theme.use_system"; const char kUsesSystemTheme[] = "extensions.theme.use_system";
......
...@@ -294,7 +294,6 @@ extern const char kForceGoogleSafeSearch[]; ...@@ -294,7 +294,6 @@ extern const char kForceGoogleSafeSearch[];
extern const char kForceYouTubeRestrict[]; extern const char kForceYouTubeRestrict[];
extern const char kForceSessionSync[]; extern const char kForceSessionSync[];
extern const char kAllowedDomainsForApps[]; extern const char kAllowedDomainsForApps[];
extern const char kSafeSitesFilterBehavior[];
#if defined(OS_LINUX) && !defined(OS_CHROMEOS) #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
extern const char kUsesSystemTheme[]; extern const char kUsesSystemTheme[];
#endif #endif
......
...@@ -11,6 +11,14 @@ namespace policy_prefs { ...@@ -11,6 +11,14 @@ namespace policy_prefs {
// by UMA_HISTOGRAM_ENUMERATION. // by UMA_HISTOGRAM_ENUMERATION.
const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update"; const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update";
// The enrollment token of machine level user cloud policy.
const char kMachineLevelUserCloudPolicyEnrollmentToken[] =
"policy.machine_level_user_cloud_policy_enrollment_token";
// Enum specifying if/how the SafeSites content filter should be applied.
// See the SafeSitesFilterBehavior policy for details.
const char kSafeSitesFilterBehavior[] = "policy.safe_sites_filter_behavior";
// Blocks access to the listed host patterns. // Blocks access to the listed host patterns.
const char kUrlBlacklist[] = "policy.url_blacklist"; const char kUrlBlacklist[] = "policy.url_blacklist";
...@@ -22,9 +30,5 @@ const char kUrlWhitelist[] = "policy.url_whitelist"; ...@@ -22,9 +30,5 @@ const char kUrlWhitelist[] = "policy.url_whitelist";
// by the cloud policy subsystem. // by the cloud policy subsystem.
const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate"; const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate";
// The enrollment token of machine level user cloud policy
const char kMachineLevelUserCloudPolicyEnrollmentToken[] =
"policy.machine_level_user_cloud_policy_enrollment_token";
} // namespace policy_prefs } // namespace policy_prefs
} // namespace policy } // namespace policy
...@@ -11,10 +11,12 @@ namespace policy { ...@@ -11,10 +11,12 @@ namespace policy {
namespace policy_prefs { namespace policy_prefs {
POLICY_EXPORT extern const char kLastPolicyStatisticsUpdate[]; POLICY_EXPORT extern const char kLastPolicyStatisticsUpdate[];
POLICY_EXPORT extern const char kMachineLevelUserCloudPolicyEnrollmentToken[];
POLICY_EXPORT extern const char kSafeSitesFilterBehavior[];
POLICY_EXPORT extern const char kUrlBlacklist[]; POLICY_EXPORT extern const char kUrlBlacklist[];
POLICY_EXPORT extern const char kUrlWhitelist[]; POLICY_EXPORT extern const char kUrlWhitelist[];
POLICY_EXPORT extern const char kUserPolicyRefreshRate[]; POLICY_EXPORT extern const char kUserPolicyRefreshRate[];
POLICY_EXPORT extern const char kMachineLevelUserCloudPolicyEnrollmentToken[];
} // namespace policy_prefs } // namespace policy_prefs
} // namespace policy } // namespace policy
......
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