| Index: content/shell/renderer/test_runner/mock_screen_orientation_client.cc
|
| diff --git a/content/shell/renderer/test_runner/mock_screen_orientation_client.cc b/content/shell/renderer/test_runner/mock_screen_orientation_client.cc
|
| index 04b471096654da64f5ca4077ffadad59419533a3..56dd73c696f8966483864628cf9da051459f6905 100644
|
| --- a/content/shell/renderer/test_runner/mock_screen_orientation_client.cc
|
| +++ b/content/shell/renderer/test_runner/mock_screen_orientation_client.cc
|
| @@ -5,8 +5,10 @@
|
| #include "content/shell/renderer/test_runner/mock_screen_orientation_client.h"
|
|
|
| #include "base/bind.h"
|
| +#include "base/location.h"
|
| #include "base/logging.h"
|
| -#include "base/message_loop/message_loop.h"
|
| +#include "base/single_thread_task_runner.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "third_party/WebKit/public/web/WebLocalFrame.h"
|
|
|
| namespace content {
|
| @@ -109,19 +111,15 @@ bool MockScreenOrientationClient::IsOrientationAllowedByCurrentLock(
|
| void MockScreenOrientationClient::lockOrientation(
|
| blink::WebScreenOrientationLockType orientation,
|
| blink::WebLockOrientationCallback* callback) {
|
| - base::MessageLoop::current()->PostTask(
|
| - FROM_HERE,
|
| - base::Bind(&MockScreenOrientationClient::UpdateLockSync,
|
| - base::Unretained(this),
|
| - orientation,
|
| - callback));
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| + FROM_HERE, base::Bind(&MockScreenOrientationClient::UpdateLockSync,
|
| + base::Unretained(this), orientation, callback));
|
| }
|
|
|
| void MockScreenOrientationClient::unlockOrientation() {
|
| - base::MessageLoop::current()->PostTask(
|
| - FROM_HERE,
|
| - base::Bind(&MockScreenOrientationClient::ResetLockSync,
|
| - base::Unretained(this)));
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| + FROM_HERE, base::Bind(&MockScreenOrientationClient::ResetLockSync,
|
| + base::Unretained(this)));
|
| }
|
|
|
| void MockScreenOrientationClient::UpdateLockSync(
|
|
|