Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(893)

Unified Diff: chrome/browser/safe_browsing/ui_manager.cc

Issue 13979002: Add support for split PSL list distinctions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed chrome_frame compilation issue Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..d0eebfe421dd4c4fcc97e423402d5723017aff10 100644
--- a/chrome/browser/safe_browsing/ui_manager.cc
+++ b/chrome/browser/safe_browsing/ui_manager.cc
@@ -255,7 +255,7 @@ void SafeBrowsingUIManager::UpdateWhitelist(const UnsafeResource& resource) {
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);
+ resource.url, net::RCDS::EXCLUDE_PRIVATE_REGISTRIES);
entry.threat_type = resource.threat_type;
white_listed_entries_.push_back(entry);
}
@@ -279,7 +279,7 @@ bool SafeBrowsingUIManager::IsWhitelisted(const UnsafeResource& resource) {
resource.threat_type == SB_THREAT_TYPE_URL_PHISHING)) &&
entry.domain ==
net::RegistryControlledDomainService::GetDomainAndRegistry(
- resource.url)) {
+ resource.url, net::RCDS::EXCLUDE_PRIVATE_REGISTRIES)) {
return true;
}
}

Powered by Google App Engine
This is Rietveld 408576698