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

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

Issue 10386097: Refactored ConfigurationPolicyProvider to provide PolicyBundles instead of PolicyMaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 7 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/configuration_policy_pref_store.cc
diff --git a/chrome/browser/policy/configuration_policy_pref_store.cc b/chrome/browser/policy/configuration_policy_pref_store.cc
index f18d6c518feea62be966754884f5f6b2ce06fbf3..280a29f1acfb315677cf5c33515715f1ae9f2a98 100644
--- a/chrome/browser/policy/configuration_policy_pref_store.cc
+++ b/chrome/browser/policy/configuration_policy_pref_store.cc
@@ -127,12 +127,9 @@ void ConfigurationPolicyPrefStore::Refresh() {
PrefValueMap* ConfigurationPolicyPrefStore::CreatePreferencesFromPolicies() {
scoped_ptr<PrefValueMap> prefs(new PrefValueMap);
- const PolicyMap* policies =
- policy_service_->GetPolicies(POLICY_DOMAIN_CHROME, "");
- if (!policies)
- return prefs.release();
PolicyMap filtered_policies;
- filtered_policies.CopyFrom(*policies);
+ filtered_policies.CopyFrom(
+ policy_service_->GetPolicies(POLICY_DOMAIN_CHROME, ""));
filtered_policies.FilterLevel(level_);
scoped_ptr<PolicyErrorMap> errors(new PolicyErrorMap);
« no previous file with comments | « chrome/browser/policy/cloud_policy_provider.cc ('k') | chrome/browser/policy/configuration_policy_pref_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698