| 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());
|
| }
|
| }
|
|
|
|
|