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

Unified Diff: net/base/ssl_client_auth_cache.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/ssl_client_auth_cache.cc
diff --git a/net/base/ssl_client_auth_cache.cc b/net/base/ssl_client_auth_cache.cc
index 7b0e158944399133e054658d4929e7ef4b357a72..f5e5e91d9f8bf64470270691967bb665f5de98f4 100644
--- a/net/base/ssl_client_auth_cache.cc
+++ b/net/base/ssl_client_auth_cache.cc
@@ -10,11 +10,11 @@
namespace net {
SSLClientAuthCache::SSLClientAuthCache() {
- CertDatabase::AddObserver(this);
+ CertDatabase::GetInstance()->AddObserver(this);
}
SSLClientAuthCache::~SSLClientAuthCache() {
- CertDatabase::RemoveObserver(this);
+ CertDatabase::GetInstance()->RemoveObserver(this);
}
bool SSLClientAuthCache::Lookup(
@@ -41,7 +41,7 @@ void SSLClientAuthCache::Remove(const std::string& server) {
cache_.erase(server);
}
-void SSLClientAuthCache::OnUserCertAdded(const X509Certificate* cert) {
+void SSLClientAuthCache::OnCertAdded(const X509Certificate* cert) {
cache_.clear();
}

Powered by Google App Engine
This is Rietveld 408576698