Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2930)

Unified Diff: base/android/java_handler_thread.cc

Issue 2041033003: clang-tidy WaitableEvent refactor (Android side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0_windows
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/application_status_listener_unittest.cc ('k') | base/test/test_support_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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),
« no previous file with comments | « base/android/application_status_listener_unittest.cc ('k') | base/test/test_support_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698