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 e5c71aa0bbfa756c4f1204f253d891706fe0025b..bc931b1d443c793fbc1546c9d77c6b7184541130 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc |
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc |
@@ -240,7 +240,9 @@ bool SafeBrowsingService::CanReportStats() const { |
// Binhash verification is only enabled for UMA users for now. |
bool SafeBrowsingService::DownloadBinHashNeeded() const { |
- return enable_download_protection_ && CanReportStats(); |
+ return (enable_download_protection_ && CanReportStats()) || |
+ (download_protection_service() && |
+ download_protection_service()->enabled()); |
} |
bool SafeBrowsingService::CheckDownloadUrl(const std::vector<GURL>& url_chain, |