Index: content/browser/renderer_host/input/touch_input_browsertest.cc |
diff --git a/content/browser/renderer_host/input/touch_input_browsertest.cc b/content/browser/renderer_host/input/touch_input_browsertest.cc |
index b6d5f991b3a998c6e4284549b0eae2a27bba9e16..9c9bcefdb44a91ed9eef474c231fe62fa39443bc 100644 |
--- a/content/browser/renderer_host/input/touch_input_browsertest.cc |
+++ b/content/browser/renderer_host/input/touch_input_browsertest.cc |
@@ -4,7 +4,10 @@ |
#include "base/auto_reset.h" |
#include "base/command_line.h" |
+#include "base/location.h" |
#include "base/run_loop.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "content/browser/gpu/compositor_util.h" |
#include "content/browser/renderer_host/render_widget_host_impl.h" |
#include "content/browser/web_contents/web_contents_impl.h" |
@@ -27,10 +30,8 @@ namespace { |
void GiveItSomeTime() { |
base::RunLoop run_loop; |
- base::MessageLoop::current()->PostDelayedTask( |
- FROM_HERE, |
- run_loop.QuitClosure(), |
- base::TimeDelta::FromMilliseconds(10)); |
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
+ FROM_HERE, run_loop.QuitClosure(), base::TimeDelta::FromMilliseconds(10)); |
run_loop.Run(); |
} |