summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-22 22:24:46 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-22 22:24:46 +0000
commit562d71ef0d9bb578482240982a1f61a94f9f2e29 (patch)
treee89dc9552fbea182627ab4c6654962be6037df13 /net
parentf7e7babb6098aea4f6fb2b458a79d8f31c68b526 (diff)
downloadchromium_src-562d71ef0d9bb578482240982a1f61a94f9f2e29.zip
chromium_src-562d71ef0d9bb578482240982a1f61a94f9f2e29.tar.gz
chromium_src-562d71ef0d9bb578482240982a1f61a94f9f2e29.tar.bz2
Release ChromeURLRequestContextGetters' references on IO thread shutdown.
We register all ChromeURLRequestContextGetters that have a reference to a ChromeURLRequestContext with the IOThread. We unregister them when they go away. In IOThread::CleanUp(), we tell the known ChromeURLRequestContextGetters to release their references to ChromeURLRequestContexts. BUG=58859 TEST=none Review URL: http://codereview.chromium.org/3686003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63578 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/ocsp/nss_ocsp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ocsp/nss_ocsp.cc b/net/ocsp/nss_ocsp.cc
index b7fcb65..45ee5bd 100644
--- a/net/ocsp/nss_ocsp.cc
+++ b/net/ocsp/nss_ocsp.cc
@@ -878,7 +878,7 @@ URLRequestContext* GetURLRequestContextForOCSP() {
pthread_mutex_lock(&g_request_context_lock);
URLRequestContext* request_context = g_request_context;
pthread_mutex_unlock(&g_request_context_lock);
- DCHECK(request_context->is_main());
+ DCHECK(!request_context || request_context->is_main());
return request_context;
}