Index: trunk/src/chrome/browser/policy/configuration_policy_handler.cc |
=================================================================== |
--- trunk/src/chrome/browser/policy/configuration_policy_handler.cc (revision 207797) |
+++ trunk/src/chrome/browser/policy/configuration_policy_handler.cc (working copy) |
@@ -292,8 +292,6 @@ |
void StringToIntEnumListPolicyHandler::ApplyPolicySettings( |
const PolicyMap& policies, |
PrefValueMap* prefs) { |
- if (!pref_path_) |
- return; |
const base::Value* value = policies.GetValue(policy_name()); |
scoped_ptr<base::ListValue> list(new base::ListValue()); |
if (value && Convert(value, list.get(), NULL)) |
@@ -362,8 +360,6 @@ |
void IntRangePolicyHandler::ApplyPolicySettings(const PolicyMap& policies, |
PrefValueMap* prefs) { |
- if (!pref_path_) |
- return; |
const base::Value* value = policies.GetValue(policy_name()); |
int value_in_range; |
if (value && EnsureInRange(value, &value_in_range, NULL)) { |
@@ -390,8 +386,6 @@ |
void IntPercentageToDoublePolicyHandler::ApplyPolicySettings( |
const PolicyMap& policies, |
PrefValueMap* prefs) { |
- if (!pref_path_) |
- return; |
const base::Value* value = policies.GetValue(policy_name()); |
int percentage; |
if (value && EnsureInRange(value, &percentage, NULL)) { |
@@ -622,8 +616,6 @@ |
void ExtensionURLPatternListPolicyHandler::ApplyPolicySettings( |
const PolicyMap& policies, |
PrefValueMap* prefs) { |
- if (!pref_path_) |
- return; |
const Value* value = policies.GetValue(policy_name()); |
if (value) |
prefs->SetValue(pref_path_, value->DeepCopy()); |
@@ -644,8 +636,6 @@ |
void SimplePolicyHandler::ApplyPolicySettings(const PolicyMap& policies, |
PrefValueMap* prefs) { |
- if (!pref_path_) |
- return; |
const Value* value = policies.GetValue(policy_name()); |
if (value) |
prefs->SetValue(pref_path_, value->DeepCopy()); |