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

Unified Diff: chrome/browser/chromeos/policy/policy_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 | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/policy_cert_verifier.cc
diff --git a/chrome/browser/chromeos/policy/policy_cert_verifier.cc b/chrome/browser/chromeos/policy/policy_cert_verifier.cc
index 4743480000e94d7306bc85cb4b286beb833e588e..69d14e2a182411dbddf321c791eb8449b58fa310 100644
--- a/chrome/browser/chromeos/policy/policy_cert_verifier.cc
+++ b/chrome/browser/chromeos/policy/policy_cert_verifier.cc
@@ -5,9 +5,11 @@
#include "chrome/browser/chromeos/policy/policy_cert_verifier.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "chrome/browser/browser_process.h"
#include "content/public/browser/browser_thread.h"
#include "net/base/net_errors.h"
+#include "net/cert/caching_cert_verifier.h"
#include "net/cert/cert_verify_proc.h"
#include "net/cert/multi_threaded_cert_verifier.h"
@@ -56,10 +58,11 @@ void PolicyCertVerifier::InitializeOnIOThread(
LOG(WARNING)
<< "Additional trust anchors not supported on the current platform!";
}
- net::MultiThreadedCertVerifier* verifier =
- new net::MultiThreadedCertVerifier(verify_proc.get());
+ std::unique_ptr<net::CachingCertVerifier> verifier =
+ base::MakeUnique<net::CachingCertVerifier>(
+ base::MakeUnique<net::MultiThreadedCertVerifier>(verify_proc.get()));
verifier->SetCertTrustAnchorProvider(this);
- delegate_.reset(verifier);
+ delegate_ = std::move(verifier);
}
void PolicyCertVerifier::SetTrustAnchors(
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698