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

Unified Diff: chrome/browser/extensions/api/storage/policy_value_store.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: chrome/browser/extensions/api/storage/policy_value_store.cc
diff --git a/chrome/browser/extensions/api/storage/policy_value_store.cc b/chrome/browser/extensions/api/storage/policy_value_store.cc
index 66708b3d456a4a58af6fcf847ece6e464a959a07..c5b6d64b9bfcb0db00a4e886449e7fd98461f51a 100644
--- a/chrome/browser/extensions/api/storage/policy_value_store.cc
+++ b/chrome/browser/extensions/api/storage/policy_value_store.cc
@@ -43,10 +43,10 @@ void PolicyValueStore::SetCurrentPolicy(const policy::PolicyMap& policy) {
// for now.
base::DictionaryValue current_policy;
for (policy::PolicyMap::const_iterator it = policy.begin();
- it != policy.end(); ++it) {
- if (it->second.level == policy::POLICY_LEVEL_MANDATORY) {
+ it != policy.end(); policy.next_dominant(&it)) {
+ if (it->first.level == policy::POLICY_LEVEL_MANDATORY) {
current_policy.SetWithoutPathExpansion(
- it->first, it->second.value->DeepCopy());
+ it->first.name, it->second.value->DeepCopy());
}
}

Powered by Google App Engine
This is Rietveld 408576698