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

Unified Diff: net/ocsp/nss_ocsp.cc

Issue 9663017: net: add OCSP tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 8 years, 9 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
« no previous file with comments | « net/data/ssl/certificates/ocsp-test-root.pem ('k') | net/test/base_test_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ocsp/nss_ocsp.cc
diff --git a/net/ocsp/nss_ocsp.cc b/net/ocsp/nss_ocsp.cc
index 1eb0b21d41a916d296a17d8beea7f0db97a9d1d0..65a3db552c528e54f0770ef013ba7b9b999fdb51 100644
--- a/net/ocsp/nss_ocsp.cc
+++ b/net/ocsp/nss_ocsp.cc
@@ -49,6 +49,8 @@ class OCSPIOLoop {
void StartUsing() {
base::AutoLock autolock(lock_);
used_ = true;
+ io_loop_ = MessageLoopForIO::current();
+ DCHECK(io_loop_);
}
// Called on IO loop.
@@ -456,8 +458,7 @@ class OCSPServerSession {
OCSPIOLoop::OCSPIOLoop()
: shutdown_(false),
used_(false),
- io_loop_(MessageLoopForIO::current()) {
- DCHECK(io_loop_);
+ io_loop_(NULL) {
}
OCSPIOLoop::~OCSPIOLoop() {
@@ -512,13 +513,6 @@ void OCSPIOLoop::AddRequest(OCSPRequestSession* request) {
}
void OCSPIOLoop::RemoveRequest(OCSPRequestSession* request) {
- {
- // Ignore if we've already shutdown.
- base::AutoLock auto_lock(lock_);
- if (shutdown_)
- return;
- }
-
DCHECK(ContainsKey(requests_, request));
requests_.erase(request);
}
« no previous file with comments | « net/data/ssl/certificates/ocsp-test-root.pem ('k') | net/test/base_test_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698