| Index: net/base/url_util.cc
|
| diff --git a/net/base/url_util.cc b/net/base/url_util.cc
|
| index 8d47bd3be29321d4aca20f0a52bbccfeb812e57f..111c95400a821e9ab53a8ec3fd7988e35c92243e 100644
|
| --- a/net/base/url_util.cc
|
| +++ b/net/base/url_util.cc
|
| @@ -342,10 +342,9 @@ bool IsHostnameNonUnique(const std::string& hostname) {
|
| // is updated. However, because gTLDs are expected to provide significant
|
| // advance notice to deprecate older versions of this code, this an
|
| // acceptable tradeoff.
|
| - return 0 == registry_controlled_domains::GetRegistryLength(
|
| - canonical_name,
|
| - registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
|
| - registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
|
| + return !registry_controlled_domains::HostHasRegistryControlledDomain(
|
| + canonical_name, registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
|
| + registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
|
| }
|
|
|
| bool IsLocalhost(base::StringPiece host) {
|
|
|