Index: extensions/common/csp_validator.cc |
diff --git a/extensions/common/csp_validator.cc b/extensions/common/csp_validator.cc |
index e6c789f6f8e59fce0d2afdc732efac15d82a37f6..22a1325396ded0dc6aedce2041102348efbf3387 100644 |
--- a/extensions/common/csp_validator.cc |
+++ b/extensions/common/csp_validator.cc |
@@ -118,9 +118,11 @@ |
return true; |
// Wildcards on subdomains of a TLD are not allowed. |
- return net::registry_controlled_domains::HostHasRegistryControlledDomain( |
- host, net::registry_controlled_domains::INCLUDE_UNKNOWN_REGISTRIES, |
+ size_t registry_length = net::registry_controlled_domains::GetRegistryLength( |
+ host, |
+ net::registry_controlled_domains::INCLUDE_UNKNOWN_REGISTRIES, |
net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES); |
+ return registry_length != 0; |
} |
// Checks whether the source is a syntactically valid hash. |