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

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

Issue 7972013: ConfigurationPolicyPrefStore refactoring to surface error messages. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 3 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_provider.cc
diff --git a/chrome/browser/policy/configuration_policy_provider.cc b/chrome/browser/policy/configuration_policy_provider.cc
index 1c9e80de226595ae81a2dbd96bba213024a77e1d..2b9a2d01411fe4e99724232d31fa076ccfdf8141 100644
--- a/chrome/browser/policy/configuration_policy_provider.cc
+++ b/chrome/browser/policy/configuration_policy_provider.cc
@@ -29,7 +29,7 @@ void ConfigurationPolicyProvider::ApplyPolicyValueTree(
for (const PolicyDefinitionList::Entry* i = policy_list->begin;
i != policy_list->end; ++i) {
Value* value;
- if (policies->Get(i->name, &value) && value->IsType(i->value_type))
+ if (policies->Get(i->name, &value) && !value->IsType(Value::TYPE_NULL))
Mattias Nissler (ping if slow) 2011/09/20 13:12:25 just remove the type check entirely.
simo 2011/09/22 11:43:26 Done.
result->Set(i->policy_type, value->DeepCopy());
}

Powered by Google App Engine
This is Rietveld 408576698