Index: components/test_runner/mock_screen_orientation_client.cc |
diff --git a/components/test_runner/mock_screen_orientation_client.cc b/components/test_runner/mock_screen_orientation_client.cc |
index dd432329282d3f6752a75b225094df8761235668..e734897194187b25544a26a7eb62e392b209e122 100644 |
--- a/components/test_runner/mock_screen_orientation_client.cc |
+++ b/components/test_runner/mock_screen_orientation_client.cc |
@@ -6,8 +6,8 @@ |
#include "base/bind.h" |
#include "base/logging.h" |
-#include "base/message_loop/message_loop.h" |
#include "base/single_thread_task_runner.h" |
+#include "base/threading/thread_task_runner_handle.h" |
#include "third_party/WebKit/public/web/WebLocalFrame.h" |
namespace test_runner { |
@@ -116,13 +116,13 @@ bool MockScreenOrientationClient::IsOrientationAllowedByCurrentLock( |
void MockScreenOrientationClient::lockOrientation( |
blink::WebScreenOrientationLockType orientation, |
blink::WebLockOrientationCallback* callback) { |
- base::MessageLoop::current()->task_runner()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, base::Bind(&MockScreenOrientationClient::UpdateLockSync, |
base::Unretained(this), orientation, callback)); |
} |
void MockScreenOrientationClient::unlockOrientation() { |
- base::MessageLoop::current()->task_runner()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, base::Bind(&MockScreenOrientationClient::ResetLockSync, |
base::Unretained(this))); |
} |