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

Unified Diff: components/safe_browsing/base_blocking_page.cc

Issue 2950863002: Implement code for Start/Finish threat details collection in WebView. (Closed)
Patch Set: fix comment Created 3 years, 6 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
« no previous file with comments | « components/safe_browsing/base_blocking_page.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing/base_blocking_page.cc
diff --git a/components/safe_browsing/base_blocking_page.cc b/components/safe_browsing/base_blocking_page.cc
index 31d08bde21f9104abf56aacd7a2be597b9714c6e..efecb2638eeb48479988863d719b0719fecb76b4 100644
--- a/components/safe_browsing/base_blocking_page.cc
+++ b/components/safe_browsing/base_blocking_page.cc
@@ -362,4 +362,14 @@ void BaseBlockingPage::set_sb_error_ui(
sb_error_ui_ = std::move(sb_error_ui);
}
+// static
+bool BaseBlockingPage::ShouldReportThreatDetails(SBThreatType threat_type) {
+ return threat_type == SB_THREAT_TYPE_URL_PHISHING ||
+ threat_type == SB_THREAT_TYPE_URL_MALWARE ||
+ threat_type == SB_THREAT_TYPE_URL_UNWANTED ||
+ threat_type == SB_THREAT_TYPE_URL_CLIENT_SIDE_PHISHING ||
+ threat_type == SB_THREAT_TYPE_URL_CLIENT_SIDE_MALWARE ||
+ threat_type == SB_THREAT_TYPE_URL_PASSWORD_PROTECTION_PHISHING;
+}
+
} // namespace safe_browsing
« no previous file with comments | « components/safe_browsing/base_blocking_page.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698