Index: net/ssl/channel_id_service.cc |
diff --git a/net/ssl/channel_id_service.cc b/net/ssl/channel_id_service.cc |
index 163a56b2977c8f99f0a6cdbe1822aad450dfda9d..830a4a438b470a8b3368391b07a967742324fcf6 100644 |
--- a/net/ssl/channel_id_service.cc |
+++ b/net/ssl/channel_id_service.cc |
@@ -31,10 +31,6 @@ |
#include "net/cert/x509_util.h" |
#include "url/gurl.h" |
-#if !defined(USE_OPENSSL) |
-#include <private/pprthred.h> // PR_DetachThread |
-#endif |
- |
namespace net { |
namespace { |
@@ -146,16 +142,6 @@ class ChannelIDServiceWorker { |
int error = ERR_FAILED; |
std::unique_ptr<ChannelIDStore::ChannelID> channel_id = |
GenerateChannelID(server_identifier_, &error); |
-#if !defined(USE_OPENSSL) |
- // Detach the thread from NSPR. |
- // Calling NSS functions attaches the thread to NSPR, which stores |
- // the NSPR thread ID in thread-specific data. |
- // The threads in our thread pool terminate after we have called |
- // PR_Cleanup. Unless we detach them from NSPR, net_unittests gets |
- // segfaults on shutdown when the threads' thread-specific data |
- // destructors run. |
- PR_DetachThread(); |
-#endif |
origin_task_runner_->PostTask( |
FROM_HERE, base::Bind(callback_, server_identifier_, error, |
base::Passed(&channel_id))); |