| Index: chrome/browser/ui/webui/policy_ui.cc
|
| diff --git a/chrome/browser/ui/webui/policy_ui.cc b/chrome/browser/ui/webui/policy_ui.cc
|
| index 26d0f4744aca06bbae532ea9d6d569fbf0762ce4..7ba40bcc724e1b3a49f04be72570c2fca71e4e4c 100644
|
| --- a/chrome/browser/ui/webui/policy_ui.cc
|
| +++ b/chrome/browser/ui/webui/policy_ui.cc
|
| @@ -585,7 +585,7 @@ void PolicyUIHandler::SendPolicyNames() const {
|
| schema_map->GetSchema(policy::PolicyNamespace(
|
| policy::POLICY_DOMAIN_EXTENSIONS, extension->id()));
|
| base::DictionaryValue* policy_names = new base::DictionaryValue;
|
| - if (schema) {
|
| + if (schema && schema->valid()) {
|
| // Get policy names from the extension's policy schema.
|
| // Store in a map, not an array, for faster lookup on JS side.
|
| for (policy::Schema::Iterator prop = schema->GetPropertiesIterator();
|
|
|