Index: base/android/java_handler_thread.cc |
diff --git a/base/android/java_handler_thread.cc b/base/android/java_handler_thread.cc |
index 93d45e32e5be5bd549afafa8a021974f0e67131e..0f410b6646a286598d5439a9e7a5923b59c3e450 100644 |
--- a/base/android/java_handler_thread.cc |
+++ b/base/android/java_handler_thread.cc |
@@ -55,7 +55,8 @@ void JavaHandlerThread::Stop() { |
shutdown_event.Wait(); |
} |
-void JavaHandlerThread::InitializeThread(JNIEnv* env, jobject obj, |
+void JavaHandlerThread::InitializeThread(JNIEnv* env, |
+ const JavaParamRef<jobject>& obj, |
jlong event) { |
// TYPE_JAVA to get the Android java style message loop. |
message_loop_.reset(new base::MessageLoop(base::MessageLoop::TYPE_JAVA)); |
@@ -63,7 +64,9 @@ void JavaHandlerThread::InitializeThread(JNIEnv* env, jobject obj, |
reinterpret_cast<base::WaitableEvent*>(event)->Signal(); |
} |
-void JavaHandlerThread::StopThread(JNIEnv* env, jobject obj, jlong event) { |
+void JavaHandlerThread::StopThread(JNIEnv* env, |
+ const JavaParamRef<jobject>& obj, |
+ jlong event) { |
static_cast<MessageLoopForUI*>(message_loop_.get())->QuitWhenIdle(); |
reinterpret_cast<base::WaitableEvent*>(event)->Signal(); |
} |