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

Unified Diff: third_party/WebKit/Source/web/tests/RunAllTests.cpp

Issue 2132593002: Remove remaining calls to deprecated MessageLoop methods on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: h264_vt_encoder_unittest.cc Created 4 years, 5 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 | « third_party/WebKit/Source/web/tests/DEPS ('k') | ui/base/test/scoped_fake_nswindow_fullscreen.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/RunAllTests.cpp
diff --git a/third_party/WebKit/Source/web/tests/RunAllTests.cpp b/third_party/WebKit/Source/web/tests/RunAllTests.cpp
index 86751eb172b016d9194680f9cc64250a2ad2fb6e..8933bc2f31b8f3867d52e9238a58520611d1d330 100644
--- a/third_party/WebKit/Source/web/tests/RunAllTests.cpp
+++ b/third_party/WebKit/Source/web/tests/RunAllTests.cpp
@@ -29,10 +29,10 @@
*/
#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "bindings/core/v8/V8GCController.h"
#include "content/test/blink_test_environment.h"
#include "mojo/edk/embedder/embedder.h"
@@ -51,7 +51,7 @@ int runHelper(base::TestSuite* testSuite)
// Tickle EndOfTaskRunner which among other things will flush the queue
// of error messages via V8Initializer::reportRejectedPromisesOnMainThread.
- base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(&base::DoNothing));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, base::Bind(&base::DoNothing));
base::RunLoop().RunUntilIdle();
// Collect garbage (including threadspecific persistent handles) in order
« no previous file with comments | « third_party/WebKit/Source/web/tests/DEPS ('k') | ui/base/test/scoped_fake_nswindow_fullscreen.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698