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

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

Issue 8536035: Include the full certificate chain in the download pingback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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
===================================================================
--- chrome/browser/safe_browsing/download_protection_service.cc (revision 109680)
+++ chrome/browser/safe_browsing/download_protection_service.cc (working copy)
@@ -405,7 +405,7 @@
void ExtractFileFeatures() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
mattm 2011/11/12 03:15:36 Probably want to move to doing this with WorkerPoo
Ryan Sleevi 2011/11/12 22:06:17 drive-by: +1 to this. These calls can take upwards
signature_util_->CheckSignature(info_.local_file, &signature_info_);
- bool is_signed = signature_info_.has_certificate_contents();
+ bool is_signed = (signature_info_.certificate_chain_size() > 0);
if (is_signed) {
VLOG(2) << "Downloaded a signed binary: " << info_.local_file.value();
} else {
@@ -454,7 +454,8 @@
sb_service_->MatchDownloadWhitelistUrl(info_.referrer_url)) {
reason = REASON_WHITELISTED_REFERRER;
}
- if (reason != REASON_MAX || signature_info_.has_certificate_contents()) {
+ if (reason != REASON_MAX ||
+ signature_info_.certificate_chain_size() > 0) {
UMA_HISTOGRAM_COUNTS("SBClientDownload.SignedOrWhitelistedDownload", 1);
}
}

Powered by Google App Engine
This is Rietveld 408576698