Index: extensions/common/csp_validator.cc |
diff --git a/extensions/common/csp_validator.cc b/extensions/common/csp_validator.cc |
index 22a1325396ded0dc6aedce2041102348efbf3387..e6c789f6f8e59fce0d2afdc732efac15d82a37f6 100644 |
--- a/extensions/common/csp_validator.cc |
+++ b/extensions/common/csp_validator.cc |
@@ -118,11 +118,9 @@ bool isNonWildcardTLD(const std::string& url, |
return true; |
// Wildcards on subdomains of a TLD are not allowed. |
- size_t registry_length = net::registry_controlled_domains::GetRegistryLength( |
- host, |
- net::registry_controlled_domains::INCLUDE_UNKNOWN_REGISTRIES, |
+ return net::registry_controlled_domains::HostHasRegistryControlledDomain( |
+ 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. |