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

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: Rebased Created 8 years, 11 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 4324ac656add71212a159b5dc4e0c9ef49c1c136..4fac70b02bf02f89089e676ecf06e0453a136ea5 100644
--- a/chrome/browser/policy/browser_policy_connector.cc
+++ b/chrome/browser/policy/browser_policy_connector.cc
@@ -108,11 +108,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();
@@ -453,14 +453,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;
@@ -476,13 +479,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;
« no previous file with comments | « chrome/browser/policy/asynchronous_policy_provider_unittest.cc ('k') | chrome/browser/policy/cloud_policy_cache_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698