| Index: components/policy/core/common/policy_test_utils.cc
|
| diff --git a/components/policy/core/common/policy_test_utils.cc b/components/policy/core/common/policy_test_utils.cc
|
| index 9d1a50dae2eb9367455743442c29afc1f88e4643..e6dc3eeb0a53b6ee4f0dc9a6c7e590126503fe4c 100644
|
| --- a/components/policy/core/common/policy_test_utils.cc
|
| +++ b/components/policy/core/common/policy_test_utils.cc
|
| @@ -47,8 +47,11 @@ bool PolicyServiceIsEmpty(const PolicyService* service) {
|
| PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()));
|
| if (!map.empty()) {
|
| base::DictionaryValue dict;
|
| - for (PolicyMap::const_iterator it = map.begin(); it != map.end(); ++it)
|
| - dict.SetWithoutPathExpansion(it->first, it->second.value->DeepCopy());
|
| + for (PolicyMap::const_iterator it = map.begin(); it != map.end();
|
| + map.next_dominant(&it)) {
|
| + dict.SetWithoutPathExpansion(it->first.name,
|
| + it->second.value->DeepCopy());
|
| + }
|
| LOG(WARNING) << "There are pre-existing policies in this machine: " << dict;
|
| }
|
| return map.empty();
|
|
|