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

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

Issue 1436273002: Send safe browsing ThreatDetails to track download CTR when user tries to recover blocked downloads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years, 1 month 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/safe_browsing_service.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc
index 84328d567347afa6c4a855a6baab443af5cf72aa..0f32155b47146b584fe31db7ad03421c8c34af2d 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -645,4 +645,20 @@ void SafeBrowsingService::RefreshState() {
#endif
}
+void SafeBrowsingService::SendDownloadRecoveryReport(
+ const std::string& report) {
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
+ BrowserThread::PostTask(
+ BrowserThread::IO, FROM_HERE,
+ base::Bind(&SafeBrowsingService::OnSendDownloadRecoveryReport, this,
+ report));
+}
+
+void SafeBrowsingService::OnSendDownloadRecoveryReport(
+ const std::string& report) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+ if (ping_manager())
+ ping_manager()->ReportThreatDetails(report);
+}
+
} // namespace safe_browsing
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.h ('k') | chrome/browser/ui/views/download/download_danger_prompt_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698