| Index: chrome/common/extensions/permissions/permission_set.cc
|
| diff --git a/chrome/common/extensions/permissions/permission_set.cc b/chrome/common/extensions/permissions/permission_set.cc
|
| index 58d24af5cbf088c385a080e4d45daf4896c9a552..a592c37c755775baf29ca71d31586088c01e9d87 100644
|
| --- a/chrome/common/extensions/permissions/permission_set.cc
|
| +++ b/chrome/common/extensions/permissions/permission_set.cc
|
| @@ -486,8 +486,10 @@ std::set<std::string> PermissionSet::GetDistinctHosts(
|
|
|
| // If the host has an RCD, split it off so we can detect duplicates.
|
| std::string rcd;
|
| - size_t reg_len = net::RegistryControlledDomainService::GetRegistryLength(
|
| - host, false);
|
| + size_t reg_len = net::registry_controlled_domains::GetRegistryLength(
|
| + host,
|
| + net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
|
| + net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
|
| if (reg_len && reg_len != std::string::npos) {
|
| if (include_rcd) // else leave rcd empty
|
| rcd = host.substr(host.size() - reg_len);
|
|
|