Chromium Code Reviews| 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 4d64fdeba632bc928308ccac218d301475d347a4..474634c460744b217724322c190f40fd44adcf54 100644 |
| --- a/components/policy/core/common/schema_map.cc |
| +++ b/components/policy/core/common/schema_map.cc |
| @@ -66,7 +66,7 @@ void SchemaMap::FilterBundle(PolicyBundle* bundle) const { |
| ++it_map; |
| std::string error; |
| if (!policy_value || |
| - !policy_schema.Validate(*policy_value, SCHEMA_STRICT, &error)) { |
| + !policy_schema.Validate(*policy_value, SCHEMA_STRICT, NULL, &error)) { |
| LOG(ERROR) << "Dropping policy " << policy_name << " for " |
| << it->first.component_id |
| << " because it's not valid: " << error; |
|
Joao da Silva
2014/01/23 20:59:31
It's a good idea to add the error path to this log
binjin
2014/01/23 21:21:58
Done.
|