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

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

Issue 8468020: Propagate the SafeBrowsing download protection verdict to the DownloadItem. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merge Created 9 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/download_protection_service.cc
diff --git a/chrome/browser/safe_browsing/download_protection_service.cc b/chrome/browser/safe_browsing/download_protection_service.cc
index 71fa9c3e71d3638eec0041145ec6af4bdc6f01f0..071706847af94b0697ce270e010b8bdb77ddebbc 100644
--- a/chrome/browser/safe_browsing/download_protection_service.cc
+++ b/chrome/browser/safe_browsing/download_protection_service.cc
@@ -575,6 +575,8 @@ class DownloadProtectionService::CheckClientDownloadRequest
}
void RecordImprovedProtectionStats(DownloadCheckResultReason reason) {
+ VLOG(2) << "SafeBrowsing download verdict for: "
+ << info_.DebugString() << " verdict:" << reason;
UMA_HISTOGRAM_ENUMERATION("SBClientDownload.CheckDownloadStats",
reason,
REASON_MAX);
@@ -640,6 +642,11 @@ void DownloadProtectionService::CheckDownloadUrl(
base::Bind(&DownloadUrlSBClient::StartCheck, client));
}
+bool DownloadProtectionService::IsSupportedFileType(
+ const FilePath& filename) const {
+ return IsBinaryFile(filename);
+}
+
void DownloadProtectionService::CancelPendingRequests() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
for (std::set<scoped_refptr<CheckClientDownloadRequest> >::iterator it =

Powered by Google App Engine
This is Rietveld 408576698