| 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 5011cd1760be167f55a29c07463ed14ecbf0191a..17b0bf44076c8522ed17b55b0290af51065c0675 100644
|
| --- a/chrome/browser/safe_browsing/safe_browsing_service.cc
|
| +++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
|
| @@ -645,3 +645,20 @@ void SafeBrowsingService::RefreshState() {
|
| download_service_->SetEnabled(enable);
|
| #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) {
|
| + LOG(ERROR) << " OnSendDownloadRecoveryReport: " << report;
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| + if (ping_manager())
|
| + ping_manager()->ReportThreatDetails(report);
|
| +}
|
|
|