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

Unified Diff: chrome/browser/io_thread.cc

Issue 2753123002: Add --ignore-certificate-errors-spki-list switch and UMA histogram. (Closed)
Patch Set: Add --ignore-certificate-errors-spki-list switch and UMA histogram. Created 3 years, 7 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/ssl/ignore_errors_cert_verifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 71e11962e31cbbe6c5a95404fdd6d3cb65d06d97..935ebc38f6145315bc250b6218e1d5633ef7f672 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -40,6 +40,7 @@
#include "chrome/browser/net/dns_probe_service.h"
#include "chrome/browser/net/proxy_service_factory.h"
#include "chrome/browser/net/sth_distributor_provider.h"
+#include "chrome/browser/ssl/ignore_errors_cert_verifier.h"
#include "chrome/common/channel_info.h"
#include "chrome/common/chrome_content_client.h"
#include "chrome/common/chrome_switches.h"
@@ -610,7 +611,11 @@ void IOThread::Init() {
base::MakeUnique<net::MultiThreadedCertVerifier>(
new chromeos::CertVerifyProcChromeOS()));
#else
- globals_->cert_verifier = net::CertVerifier::CreateDefault();
+ globals_->cert_verifier = IgnoreErrorsCertVerifier::MaybeWrapCertVerifier(
+ command_line, net::CertVerifier::CreateDefault());
+ UMA_HISTOGRAM_BOOLEAN(
+ "Net.Certificate.IgnoreCertificateErrorsSPKIListPresent",
+ command_line.HasSwitch(switches::kIgnoreCertificateErrorsSPKIList));
#endif
globals_->transport_security_state.reset(new net::TransportSecurityState());
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/ssl/ignore_errors_cert_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698