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 ea347c70ea3125ce6cea36d4b0fb364812977521..c038ce0aff4dde7914b55480ac1034395e402720 100644 |
--- a/chrome/common/extensions/permissions/permission_set.cc |
+++ b/chrome/common/extensions/permissions/permission_set.cc |
@@ -465,7 +465,9 @@ 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); |
+ host, |
+ net::RCDS::EXCLUDE_UNKNOWN_REGISTRIES, |
+ net::RCDS::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); |