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

Unified Diff: base/android/java_handler_thread.cc

Issue 1390513002: Remove base::MessageLoop::{Quit,QuitClosure} functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split into small CLs Created 5 years, 2 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 | « no previous file | base/message_loop/message_loop.h » ('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 91c8f045341fbc6753972271fb9bf536f51299b4..93d45e32e5be5bd549afafa8a021974f0e67131e 100644
--- a/base/android/java_handler_thread.cc
+++ b/base/android/java_handler_thread.cc
@@ -64,7 +64,7 @@ void JavaHandlerThread::InitializeThread(JNIEnv* env, jobject obj,
}
void JavaHandlerThread::StopThread(JNIEnv* env, jobject obj, jlong event) {
- static_cast<MessageLoopForUI*>(message_loop_.get())->Quit();
+ static_cast<MessageLoopForUI*>(message_loop_.get())->QuitWhenIdle();
reinterpret_cast<base::WaitableEvent*>(event)->Signal();
}
« no previous file with comments | « no previous file | base/message_loop/message_loop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698