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

Unified Diff: net/base/multi_threaded_cert_verifier.cc

Issue 10916094: Move the NSS functions out of CertDatabase into a new NSSCertDatabase class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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 54e032426ba88b9686d3c54de1539938592ee8a4..3e8cf136682fddb145f0c9550ac9287686cc4425 100644
--- a/net/base/multi_threaded_cert_verifier.cc
+++ b/net/base/multi_threaded_cert_verifier.cc
@@ -382,13 +382,12 @@ MultiThreadedCertVerifier::MultiThreadedCertVerifier()
cache_hits_(0),
inflight_joins_(0),
verify_proc_(CertVerifyProc::CreateDefault()) {
- CertDatabase::AddObserver(this);
+ CertDatabase::GetInstance()->AddObserver(this);
}
MultiThreadedCertVerifier::~MultiThreadedCertVerifier() {
STLDeleteValues(&inflight_);
-
- CertDatabase::RemoveObserver(this);
+ CertDatabase::GetInstance()->RemoveObserver(this);
}
int MultiThreadedCertVerifier::Verify(X509Certificate* cert,

Powered by Google App Engine
This is Rietveld 408576698