| Index: remoting/host/policy_watcher.cc
|
| diff --git a/remoting/host/policy_watcher.cc b/remoting/host/policy_watcher.cc
|
| index 3c3cfb5d7740656d21142541f0a60dc52dfd79db..9f5c1be3ea17336465ad676c0ea81f9c1cb67303 100644
|
| --- a/remoting/host/policy_watcher.cc
|
| +++ b/remoting/host/policy_watcher.cc
|
| @@ -88,8 +88,9 @@ scoped_ptr<base::DictionaryValue> CopyChromotingPoliciesIntoDictionary(
|
| const policy::PolicyMap& current) {
|
| const char kPolicyNameSubstring[] = "RemoteAccessHost";
|
| scoped_ptr<base::DictionaryValue> policy_dict(new base::DictionaryValue());
|
| - for (auto it = current.begin(); it != current.end(); ++it) {
|
| - const std::string& key = it->first;
|
| + for (auto it = current.begin(); it != current.end();
|
| + current.next_domominant(&it)) {
|
| + const std::string& key = it->first.name;
|
| const base::Value* value = it->second.value;
|
|
|
| // Copying only Chromoting-specific policies helps avoid false alarms
|
|
|