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

Unified Diff: net/cert/cert_verifier.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 | « net/cert/caching_cert_verifier_unittest.cc ('k') | net/cert/multi_threaded_cert_verifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/cert_verifier.cc
diff --git a/net/cert/cert_verifier.cc b/net/cert/cert_verifier.cc
index 3077588f45ac31d87bcfd39758a0a96077ba76ba..f6aa2df898e65e0adb3db3af623468187f9f13ed 100644
--- a/net/cert/cert_verifier.cc
+++ b/net/cert/cert_verifier.cc
@@ -17,6 +17,7 @@
#if defined(OS_NACL)
#include "base/logging.h"
#else
+#include "net/cert/caching_cert_verifier.h"
#include "net/cert/multi_threaded_cert_verifier.h"
#endif
@@ -76,8 +77,9 @@ std::unique_ptr<CertVerifier> CertVerifier::CreateDefault() {
NOTIMPLEMENTED();
return std::unique_ptr<CertVerifier>();
#else
- return base::WrapUnique(
- new MultiThreadedCertVerifier(CertVerifyProc::CreateDefault()));
+ return base::MakeUnique<CachingCertVerifier>(
+ base::MakeUnique<MultiThreadedCertVerifier>(
+ CertVerifyProc::CreateDefault()));
#endif
}
« no previous file with comments | « net/cert/caching_cert_verifier_unittest.cc ('k') | net/cert/multi_threaded_cert_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698