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

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: Addressed comments 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 b2c3a0a434cfdc5a66fc946ece208ee05518c3b6..577c4551d2a1cba67430b860a2748f24723b7b6b 100644
--- a/net/base/multi_threaded_cert_verifier.cc
+++ b/net/base/multi_threaded_cert_verifier.cc
@@ -382,13 +382,15 @@ MultiThreadedCertVerifier::MultiThreadedCertVerifier()
cache_hits_(0),
inflight_joins_(0),
verify_proc_(CertVerifyProc::CreateDefault()) {
- CertDatabase::AddObserver(this);
+ CertDatabase cert_db;
+ cert_db.AddObserver(this);
}
MultiThreadedCertVerifier::~MultiThreadedCertVerifier() {
STLDeleteValues(&inflight_);
- CertDatabase::RemoveObserver(this);
+ CertDatabase cert_db;
+ cert_db.RemoveObserver(this);
}
int MultiThreadedCertVerifier::Verify(X509Certificate* cert,

Powered by Google App Engine
This is Rietveld 408576698