| Index: base/android/java_handler_thread.cc
|
| diff --git a/base/android/java_handler_thread.cc b/base/android/java_handler_thread.cc
|
| index 0f410b6646a286598d5439a9e7a5923b59c3e450..75270348e6ee15756daa12faf09303d53b5b903a 100644
|
| --- a/base/android/java_handler_thread.cc
|
| +++ b/base/android/java_handler_thread.cc
|
| @@ -32,7 +32,9 @@ void JavaHandlerThread::Start() {
|
| DCHECK(!message_loop_);
|
|
|
| JNIEnv* env = base::android::AttachCurrentThread();
|
| - base::WaitableEvent initialize_event(false, false);
|
| + base::WaitableEvent initialize_event(
|
| + WaitableEvent::ResetPolicy::AUTOMATIC,
|
| + WaitableEvent::InitialState::NOT_SIGNALED);
|
| Java_JavaHandlerThread_start(env,
|
| java_thread_.obj(),
|
| reinterpret_cast<intptr_t>(this),
|
| @@ -45,7 +47,8 @@ void JavaHandlerThread::Start() {
|
|
|
| void JavaHandlerThread::Stop() {
|
| JNIEnv* env = base::android::AttachCurrentThread();
|
| - base::WaitableEvent shutdown_event(false, false);
|
| + base::WaitableEvent shutdown_event(WaitableEvent::ResetPolicy::AUTOMATIC,
|
| + WaitableEvent::InitialState::NOT_SIGNALED);
|
| Java_JavaHandlerThread_stop(env,
|
| java_thread_.obj(),
|
| reinterpret_cast<intptr_t>(this),
|
|
|