summaryrefslogtreecommitdiffstats
path: root/base/nss_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/nss_util.cc')
-rw-r--r--base/nss_util.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/base/nss_util.cc b/base/nss_util.cc
index 5c7cafd..fd91142 100644
--- a/base/nss_util.cc
+++ b/base/nss_util.cc
@@ -14,7 +14,7 @@
#include <secmod.h>
#if defined(OS_LINUX)
-#include <linux/magic.h>
+#include <linux/nfs_fs.h>
#include <sys/vfs.h>
#endif
@@ -22,6 +22,7 @@
#include "base/logging.h"
#include "base/singleton.h"
#include "base/stringprintf.h"
+#include "base/thread_restrictions.h"
// USE_NSS means we use NSS for everything crypto-related. If USE_NSS is not
// defined, such as on Mac and Windows, we use NSS for SSL only -- we don't
@@ -310,6 +311,10 @@ void EnsureNSPRInit() {
}
void EnsureNSSInit() {
+ // Initializing SSL causes us to do blocking IO.
+ // Temporarily allow it until we fix
+ // http://code.google.com/p/chromium/issues/detail?id=59847
+ base::ThreadRestrictions::ScopedAllowIO allow_io;
Singleton<NSSInitSingleton>::get();
}