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

Unified Diff: remoting/host/policy_watcher.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
« no previous file with comments | « components/prefs/pref_value_store.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « components/prefs/pref_value_store.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698