| Index: crypto/openssl_util.cc
|
| diff --git a/crypto/openssl_util.cc b/crypto/openssl_util.cc
|
| index 94bf246a7cdbe3d8d02bfdae2acc70c6272d32a0..34af810c1d01c5f4e4976464ba0c349763434164 100644
|
| --- a/crypto/openssl_util.cc
|
| +++ b/crypto/openssl_util.cc
|
| @@ -6,7 +6,6 @@
|
|
|
| #include <openssl/err.h>
|
| #include <openssl/ssl.h>
|
| -#include <openssl/cpu.h>
|
|
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_vector.h"
|
| @@ -23,9 +22,8 @@
|
|
|
| namespace {
|
|
|
| -void CurrentThreadId(CRYPTO_THREADID* id) {
|
| - CRYPTO_THREADID_set_numeric(
|
| - id, static_cast<unsigned long>(base::PlatformThread::CurrentId()));
|
| +unsigned long CurrentThreadId() {
|
| + return static_cast<unsigned long>(base::PlatformThread::CurrentId());
|
| }
|
|
|
| // Singleton for initializing and cleaning up the OpenSSL library.
|
| @@ -55,7 +53,7 @@
|
| for (int i = 0; i < num_locks; ++i)
|
| locks_.push_back(new base::Lock());
|
| CRYPTO_set_locking_callback(LockingCallback);
|
| - CRYPTO_THREADID_set_callback(CurrentThreadId);
|
| + CRYPTO_set_id_callback(CurrentThreadId);
|
|
|
| #if defined(OS_ANDROID) && defined(ARCH_CPU_ARMEL)
|
| const bool has_neon =
|
|
|