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

Unified Diff: components/policy/core/browser/configuration_policy_handler_list.cc

Issue 1825173003: [Policy Experimental] Add "recommended" policies for URL exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync. Created 4 years, 9 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: 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);
}
}

Powered by Google App Engine
This is Rietveld 408576698