| Index: components/policy/core/browser/configuration_policy_handler_list.cc
|
| diff --git a/components/policy/core/browser/configuration_policy_handler_list.cc b/components/policy/core/browser/configuration_policy_handler_list.cc
|
| index 14048383d535a1faab901f70d0ea1d489c09ecae..b252e8127247b3a54b99db26ecbecd07ef4d902b 100644
|
| --- a/components/policy/core/browser/configuration_policy_handler_list.cc
|
| +++ b/components/policy/core/browser/configuration_policy_handler_list.cc
|
| @@ -48,11 +48,12 @@ void ConfigurationPolicyHandlerList::ApplyPolicySettings(
|
|
|
| for (PolicyMap::const_iterator it = policies.begin();
|
| it != policies.end();
|
| - ++it) {
|
| + policies.next_dominant(&it)) {
|
| const PolicyDetails* details =
|
| - details_callback_.is_null() ? NULL : details_callback_.Run(it->first);
|
| + details_callback_.is_null() ? NULL :
|
| + details_callback_.Run(it->first.name);
|
| if (details && details->is_deprecated)
|
| - errors->AddError(it->first, IDS_POLICY_DEPRECATED);
|
| + errors->AddError(it->first.name, IDS_POLICY_DEPRECATED);
|
| }
|
| }
|
|
|
|
|