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

Unified Diff: net/spdy/spdy_session_pool.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/spdy/spdy_session_pool.cc
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc
index 0a8eb7f5055dcd07a683d1c2ca786ff84d9bf4d3..3c9db1d4310145856eed468455e8f6eabd2cc249 100644
--- a/net/spdy/spdy_session_pool.cc
+++ b/net/spdy/spdy_session_pool.cc
@@ -55,7 +55,7 @@ SpdySessionPool::SpdySessionPool(
NetworkChangeNotifier::AddIPAddressObserver(this);
if (ssl_config_service_)
ssl_config_service_->AddObserver(this);
- CertDatabase::AddObserver(this);
+ CertDatabase::GetInstance()->AddObserver(this);
}
SpdySessionPool::~SpdySessionPool() {
@@ -64,7 +64,7 @@ SpdySessionPool::~SpdySessionPool() {
if (ssl_config_service_)
ssl_config_service_->RemoveObserver(this);
NetworkChangeNotifier::RemoveIPAddressObserver(this);
- CertDatabase::RemoveObserver(this);
+ CertDatabase::GetInstance()->RemoveObserver(this);
}
scoped_refptr<SpdySession> SpdySessionPool::Get(
@@ -309,7 +309,7 @@ scoped_refptr<SpdySession> SpdySessionPool::GetFromAlias(
return NULL;
}
-void SpdySessionPool::OnUserCertAdded(const X509Certificate* cert) {
+void SpdySessionPool::OnCertAdded(const X509Certificate* cert) {
CloseCurrentSessions();
}

Powered by Google App Engine
This is Rietveld 408576698