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 488af8d0f5168ee62cf973a4c00c11a6f89b9fd8..89d1daafe7fb6b69e4aa3aa1ef5b70b62c0399c1 100644 |
--- a/components/policy/core/common/schema_map.cc |
+++ b/components/policy/core/common/schema_map.cc |
@@ -63,7 +63,9 @@ void SchemaMap::FilterBundle(PolicyBundle* bundle) const { |
const base::Value* policy_value = it_map->second.value; |
Schema policy_schema = schema->GetProperty(policy_name); |
++it_map; |
- if (!policy_value || !policy_schema.Validate(*policy_value)) |
+ std::string error; |
+ if (!policy_value || !policy_schema.Validate(*policy_value, |
+ SCHEMA_VERY_STRICT, &error)) |
map->Erase(policy_name); |
Joao da Silva
2014/01/22 10:49:53
You can log the error here, to assist extension de
binjin
2014/01/23 12:01:31
Done.
|
} |
} |