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

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

Issue 8572037: Whitelist executables that are trusted in the SafeBrowsing download protection. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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 897d401e144041be6c7026cf2fdc1c6e860988b6..e6eb57f04df7f4661f5b0fabe4419621fd842c71 100644
--- a/chrome/browser/safe_browsing/download_protection_service.cc
+++ b/chrome/browser/safe_browsing/download_protection_service.cc
@@ -484,11 +484,15 @@ class DownloadProtectionService::CheckClientDownloadRequest
sb_service_->MatchDownloadWhitelistUrl(info_.referrer_url)) {
reason = REASON_WHITELISTED_REFERRER;
}
- if (reason != REASON_MAX ||
- signature_info_.certificate_chain_size() > 0) {
+ if (reason != REASON_MAX || signature_info_.trusted()) {
UMA_HISTOGRAM_COUNTS("SBClientDownload.SignedOrWhitelistedDownload", 1);
}
}
+ if (reason == REASON_MAX && signature_info_.trusted()) {
+ // TODO(noelutz): implement a certificate whitelist and only whitelist
+ // binaries whose certificate match the whitelist.
+ reason = REASON_TRUSTED_EXECUTABLE;
+ }
if (reason != REASON_MAX) {
RecordImprovedProtectionStats(reason);
CheckDigestList();

Powered by Google App Engine
This is Rietveld 408576698