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

Unified Diff: chrome/browser/io_thread.cc

Issue 1227943002: Allow browser tests to use a MockCertVerifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style fixes, comments Created 5 years, 5 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/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 6d2307533e18f6ff2dcf63dfcf2d1fffd3071c2f..a3fc5fcec9fd9b4748f2d2f29ce2cfe5d26a6b9e 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -663,14 +663,15 @@ void IOThread::Init() {
tracked_objects::ScopedTracker tracking_profile6(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"466432 IOThread::InitAsync::UpdateDnsClientEnabled::End"));
+ net::CertVerifyProc* cert_verify_proc;
#if defined(OS_CHROMEOS)
// Creates a CertVerifyProc that doesn't allow any profile-provided certs.
- globals_->cert_verifier.reset(new net::MultiThreadedCertVerifier(
- new chromeos::CertVerifyProcChromeOS()));
+ cert_verify_proc = new chromeos::CertVerifyProcChromeOS();
#else
- globals_->cert_verifier.reset(new net::MultiThreadedCertVerifier(
- net::CertVerifyProc::CreateDefault()));
+ cert_verify_proc = net::CertVerifyProc::CreateDefault();
#endif
+ globals_->cert_verifier.reset(
+ net::CertVerifier::CreateWithVerifyProc(cert_verify_proc));
globals_->transport_security_state.reset(new net::TransportSecurityState());
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_io_data.cc » ('j') | chrome/browser/profiles/profile_io_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698