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

Unified Diff: chrome/browser/net/chrome_fraudulent_certificate_reporter.cc

Issue 1076273002: Add interstitial info to certificate reports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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/net/chrome_fraudulent_certificate_reporter.cc
diff --git a/chrome/browser/net/chrome_fraudulent_certificate_reporter.cc b/chrome/browser/net/chrome_fraudulent_certificate_reporter.cc
index 1c6dd486a5bccec9f0b10507beba7e8eb93d1f24..e15a3ca421637abc1be2b2ec11ab3a72769a622b 100644
--- a/chrome/browser/net/chrome_fraudulent_certificate_reporter.cc
+++ b/chrome/browser/net/chrome_fraudulent_certificate_reporter.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h"
#include "base/profiler/scoped_tracker.h"
+#include "chrome/browser/net/cert_logger.pb.h"
#include "chrome/browser/net/certificate_error_reporter.h"
#include "net/ssl/ssl_info.h"
#include "net/url_request/url_request_context.h"
@@ -45,9 +46,10 @@ void ChromeFraudulentCertificateReporter::SendReport(
if (!net::TransportSecurityState::IsGooglePinnedProperty(hostname))
return;
+ CertLoggerRequest report;
+ certificate_reporter_->BuildReport(hostname, ssl_info, &report);
certificate_reporter_->SendReport(
- CertificateErrorReporter::REPORT_TYPE_PINNING_VIOLATION, hostname,
- ssl_info);
+ CertificateErrorReporter::REPORT_TYPE_PINNING_VIOLATION, report);
}
} // namespace chrome_browser_net

Powered by Google App Engine
This is Rietveld 408576698