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

Unified Diff: base/message_loop/message_loop_unittest.cc

Issue 2342903002: Remove calls to deprecated MessageLoop methods from message_loop_unittest.cc. (Closed)
Patch Set: fix build error Created 4 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop/message_loop_unittest.cc
diff --git a/base/message_loop/message_loop_unittest.cc b/base/message_loop/message_loop_unittest.cc
index 0d994f072ccc49cfd64daa419489297470f3a0b7..f7b583061bb140cfddf5bfa55c1cba291492c6f5 100644
--- a/base/message_loop/message_loop_unittest.cc
+++ b/base/message_loop/message_loop_unittest.cc
@@ -106,10 +106,11 @@ void RunTest_AbortDontRunMoreTasks(bool delayed) {
java_thread->Start();
if (delayed) {
- java_thread->message_loop()->PostDelayedTask(
+ java_thread->message_loop()->task_runner()->PostDelayedTask(
FROM_HERE, Bind(&AbortMessagePump), TimeDelta::FromMilliseconds(10));
} else {
- java_thread->message_loop()->PostTask(FROM_HERE, Bind(&AbortMessagePump));
+ java_thread->message_loop()->task_runner()->PostTask(
+ FROM_HERE, Bind(&AbortMessagePump));
}
// Wait to ensure we catch the correct exception (and don't crash)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698