| Index: net/ssl/channel_id_service.cc
|
| diff --git a/net/ssl/channel_id_service.cc b/net/ssl/channel_id_service.cc
|
| index 7cae014a2f09c547b2d8f1f33aa2bce7509399e1..812b04a22eaf9b366d7c279538816ff28a1335f0 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 {
|
| @@ -147,16 +143,6 @@ class ChannelIDServiceWorker {
|
| int error = ERR_FAILED;
|
| scoped_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)));
|
|
|