| Index: components/google/core/browser/google_util.cc
|
| diff --git a/components/google/core/browser/google_util.cc b/components/google/core/browser/google_util.cc
|
| index a6654c9f28701ad6a10781ed527a4b6f12e486db..f3e8fd432b8e35afac9835c7e8727b6ff0ac2f27 100644
|
| --- a/components/google/core/browser/google_util.cc
|
| +++ b/components/google/core/browser/google_util.cc
|
| @@ -50,6 +50,9 @@ bool IsPathHomePageBase(base::StringPiece path) {
|
| bool IsValidHostName(base::StringPiece host,
|
| base::StringPiece domain_in_lower_case,
|
| SubdomainPermission subdomain_permission) {
|
| + // Fast path to avoid searching the registry set.
|
| + if (host.find(domain_in_lower_case) == base::StringPiece::npos)
|
| + return false;
|
| size_t tld_length =
|
| net::registry_controlled_domains::GetCanonicalHostRegistryLength(
|
| host, net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
|
|
|