Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2391)

Unified Diff: chrome/browser/policy/browser_policy_connector.cc

Issue 9111022: Removed ConfigurationPolicyType and extended PolicyMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/browser_policy_connector.cc
diff --git a/chrome/browser/policy/browser_policy_connector.cc b/chrome/browser/policy/browser_policy_connector.cc
index 8e2c3ce9a2c90ef864e5966fcf4b7d92e9c69276..74d31969c2d30a00ea2c75f1950e7ef8ea9e8fdb 100644
--- a/chrome/browser/policy/browser_policy_connector.cc
+++ b/chrome/browser/policy/browser_policy_connector.cc
@@ -109,11 +109,11 @@ void BrowserPolicyConnector::Init() {
managed_cloud_provider_.reset(new CloudPolicyProviderImpl(
this,
GetChromePolicyDefinitionList(),
- CloudPolicyCacheBase::POLICY_LEVEL_MANDATORY));
+ POLICY_LEVEL_MANDATORY));
recommended_cloud_provider_.reset(new CloudPolicyProviderImpl(
this,
GetChromePolicyDefinitionList(),
- CloudPolicyCacheBase::POLICY_LEVEL_RECOMMENDED));
+ POLICY_LEVEL_RECOMMENDED));
#if defined(OS_CHROMEOS)
InitializeDevicePolicy();
@@ -452,14 +452,17 @@ ConfigurationPolicyProvider*
const PolicyDefinitionList* policy_list = GetChromePolicyDefinitionList();
#if defined(OS_WIN)
return new ConfigurationPolicyProviderWin(policy_list,
- policy::kRegistryMandatorySubKey);
+ policy::kRegistryMandatorySubKey,
+ POLICY_LEVEL_MANDATORY);
#elif defined(OS_MACOSX)
- return new ConfigurationPolicyProviderMac(policy_list);
+ return new ConfigurationPolicyProviderMac(policy_list,
+ POLICY_LEVEL_MANDATORY);
#elif defined(OS_POSIX)
FilePath config_dir_path;
if (PathService::Get(chrome::DIR_POLICY_FILES, &config_dir_path)) {
return new ConfigDirPolicyProvider(
policy_list,
+ POLICY_LEVEL_MANDATORY,
config_dir_path.Append(FILE_PATH_LITERAL("managed")));
} else {
return NULL;
@@ -475,13 +478,15 @@ ConfigurationPolicyProvider*
#if defined(OS_WIN)
const PolicyDefinitionList* policy_list = GetChromePolicyDefinitionList();
return new ConfigurationPolicyProviderWin(policy_list,
- policy::kRegistryRecommendedSubKey);
+ policy::kRegistryRecommendedSubKey,
+ POLICY_LEVEL_RECOMMENDED);
#elif defined(OS_POSIX) && !defined(OS_MACOSX)
const PolicyDefinitionList* policy_list = GetChromePolicyDefinitionList();
FilePath config_dir_path;
if (PathService::Get(chrome::DIR_POLICY_FILES, &config_dir_path)) {
return new ConfigDirPolicyProvider(
policy_list,
+ POLICY_LEVEL_RECOMMENDED,
config_dir_path.Append(FILE_PATH_LITERAL("recommended")));
} else {
return NULL;

Powered by Google App Engine
This is Rietveld 408576698