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

Unified Diff: content/public/test/frame_load_waiter.cc

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test build fix. Created 5 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
Index: content/public/test/frame_load_waiter.cc
diff --git a/content/public/test/frame_load_waiter.cc b/content/public/test/frame_load_waiter.cc
index 6da69afb8ca7ffb0829dc853cefae814d45b9a7d..c9cee107d590af0a88bde83e11038c0cb3de51b5 100644
--- a/content/public/test/frame_load_waiter.cc
+++ b/content/public/test/frame_load_waiter.cc
@@ -5,7 +5,8 @@
#include "content/public/test/frame_load_waiter.h"
#include "base/location.h"
-#include "base/message_loop/message_loop.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
namespace content {
@@ -21,7 +22,8 @@ void FrameLoadWaiter::Wait() {
void FrameLoadWaiter::DidFinishLoad() {
// Post a task to quit instead of quitting directly, since the load completion
// may trigger other IPCs that tests are expecting.
- base::MessageLoop::current()->PostTask(FROM_HERE, run_loop_.QuitClosure());
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
+ run_loop_.QuitClosure());
}
} // namespace content
« no previous file with comments | « content/public/test/fake_speech_recognition_manager.cc ('k') | content/public/test/mock_blob_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698