Index: chrome/browser/io_thread.cc |
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc |
index f361b77cd788f501c1b885879fbb5ede4dd934c5..ed82c275cd02ff7919db0cf42810b00c332dc861 100644 |
--- a/chrome/browser/io_thread.cc |
+++ b/chrome/browser/io_thread.cc |
@@ -24,6 +24,9 @@ |
#include "net/base/net_util.h" |
#include "net/http/http_auth_filter.h" |
#include "net/http/http_auth_handler_factory.h" |
+#if defined(USE_NSS) |
+#include "net/ocsp/nss_ocsp.h" |
+#endif // defined(USE_NSS) |
namespace { |
@@ -157,6 +160,12 @@ void IOThread::ChangedToOnTheRecord() { |
void IOThread::Init() { |
BrowserProcessSubThread::Init(); |
+ DCHECK_EQ(MessageLoop::TYPE_IO, message_loop()->type()); |
+ |
+#if defined(USE_NSS) |
+ net::SetMessageLoopForOCSP(); |
+#endif // defined(USE_NSS) |
+ |
DCHECK(!globals_); |
globals_ = new Globals; |