| Index: chrome/browser/safe_browsing/ui_manager.cc
|
| diff --git a/chrome/browser/safe_browsing/ui_manager.cc b/chrome/browser/safe_browsing/ui_manager.cc
|
| index 4d60ecea7d234f0085d1f6f2ccddd7474dc01618..b9675e14ae033316439b45b1c0d2030592a9a27b 100644
|
| --- a/chrome/browser/safe_browsing/ui_manager.cc
|
| +++ b/chrome/browser/safe_browsing/ui_manager.cc
|
| @@ -254,8 +254,9 @@ void SafeBrowsingUIManager::UpdateWhitelist(const UnsafeResource& resource) {
|
| WhiteListedEntry entry;
|
| entry.render_process_host_id = resource.render_process_host_id;
|
| entry.render_view_id = resource.render_view_id;
|
| - entry.domain = net::RegistryControlledDomainService::GetDomainAndRegistry(
|
| - resource.url);
|
| + entry.domain = net::registry_controlled_domains::GetDomainAndRegistry(
|
| + resource.url,
|
| + net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
|
| entry.threat_type = resource.threat_type;
|
| white_listed_entries_.push_back(entry);
|
| }
|
| @@ -278,8 +279,9 @@ bool SafeBrowsingUIManager::IsWhitelisted(const UnsafeResource& resource) {
|
| (entry.threat_type == SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL &&
|
| resource.threat_type == SB_THREAT_TYPE_URL_PHISHING)) &&
|
| entry.domain ==
|
| - net::RegistryControlledDomainService::GetDomainAndRegistry(
|
| - resource.url)) {
|
| + net::registry_controlled_domains::GetDomainAndRegistry(
|
| + resource.url,
|
| + net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES)) {
|
| return true;
|
| }
|
| }
|
|
|