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

Unified Diff: components/policy/core/common/schema_map.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/policy/core/common/policy_types.h ('k') | components/policy/resources/policy_templates.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/schema_map.cc
diff --git a/components/policy/core/common/schema_map.cc b/components/policy/core/common/schema_map.cc
index 8485b41589e4008114a631acdaef31c708e67377..0cc83369b804be59e3f5aa335a7fca8d4dde0519 100644
--- a/components/policy/core/common/schema_map.cc
+++ b/components/policy/core/common/schema_map.cc
@@ -70,10 +70,10 @@ void SchemaMap::FilterBundle(PolicyBundle* bundle) const {
PolicyMap* map = it->second;
for (PolicyMap::const_iterator it_map = map->begin();
it_map != map->end();) {
- const std::string& policy_name = it_map->first;
+ const std::string& policy_name = it_map->first.name;
const base::Value* policy_value = it_map->second.value;
Schema policy_schema = schema->GetProperty(policy_name);
- ++it_map;
+ map->next_dominant(&it_map);
std::string error_path;
std::string error;
if (!policy_value ||
« no previous file with comments | « components/policy/core/common/policy_types.h ('k') | components/policy/resources/policy_templates.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698