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

Unified Diff: net/base/multi_threaded_cert_verifier.cc

Issue 10917309: Make MultiThreadedCertVerifier receive a CertVerifyProc, rather than creating one (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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: net/base/multi_threaded_cert_verifier.cc
diff --git a/net/base/multi_threaded_cert_verifier.cc b/net/base/multi_threaded_cert_verifier.cc
index 3e8cf136682fddb145f0c9550ac9287686cc4425..63d320ea27bef97c073269c912ea8a5ce74f7bff 100644
--- a/net/base/multi_threaded_cert_verifier.cc
+++ b/net/base/multi_threaded_cert_verifier.cc
@@ -376,12 +376,13 @@ class CertVerifierJob {
const BoundNetLog net_log_;
};
-MultiThreadedCertVerifier::MultiThreadedCertVerifier()
+MultiThreadedCertVerifier::MultiThreadedCertVerifier(
+ CertVerifyProc* verify_proc)
: cache_(kMaxCacheEntries),
requests_(0),
cache_hits_(0),
inflight_joins_(0),
- verify_proc_(CertVerifyProc::CreateDefault()) {
+ verify_proc_(verify_proc) {
CertDatabase::GetInstance()->AddObserver(this);
}
@@ -510,8 +511,4 @@ void MultiThreadedCertVerifier::OnCertTrustChanged(
ClearCache();
}
-void MultiThreadedCertVerifier::SetCertVerifyProc(CertVerifyProc* verify_proc) {
- verify_proc_ = verify_proc;
-}
-
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698