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

Unified Diff: chrome/browser/io_thread.cc

Issue 1991653002: Move caching out of MultiThreadedCertVerifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@request_params
Patch Set: CrOS fixes Created 4 years, 6 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/chromeos/policy/policy_cert_verifier.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('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 0a2e396321045800cc44d626f714386cf02e9957..95db4d7b054bf7cfe99542c82995b70701914d8e 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -66,6 +66,7 @@
#include "net/base/host_mapping_rules.h"
#include "net/base/logging_network_change_observer.h"
#include "net/base/sdch_manager.h"
+#include "net/cert/caching_cert_verifier.h"
#include "net/cert/cert_verifier.h"
#include "net/cert/cert_verify_proc.h"
#include "net/cert/ct_known_logs.h"
@@ -563,11 +564,11 @@ void IOThread::Init() {
"466432 IOThread::InitAsync::UpdateDnsClientEnabled::End"));
#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()));
+ globals_->cert_verifier = base::MakeUnique<net::CachingCertVerifier>(
+ base::MakeUnique<net::MultiThreadedCertVerifier>(
+ new chromeos::CertVerifyProcChromeOS()));
#else
- globals_->cert_verifier.reset(new net::MultiThreadedCertVerifier(
- net::CertVerifyProc::CreateDefault()));
+ globals_->cert_verifier = net::CertVerifier::CreateDefault();
#endif
globals_->transport_security_state.reset(new net::TransportSecurityState());
« no previous file with comments | « chrome/browser/chromeos/policy/policy_cert_verifier.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698