| Index: chrome/browser/chromeos/login/oobe_browsertest.cc
|
| diff --git a/chrome/browser/chromeos/login/oobe_browsertest.cc b/chrome/browser/chromeos/login/oobe_browsertest.cc
|
| index 37ecce177af08a54551a982c80966e7ac5a5232f..fd2fb5495eb0ccffb9be415db2eac5952a169419 100644
|
| --- a/chrome/browser/chromeos/login/oobe_browsertest.cc
|
| +++ b/chrome/browser/chromeos/login/oobe_browsertest.cc
|
| @@ -3,7 +3,10 @@
|
| // found in the LICENSE file.
|
|
|
| #include "base/command_line.h"
|
| +#include "base/location.h"
|
| #include "base/macros.h"
|
| +#include "base/single_thread_task_runner.h"
|
| +#include "base/threading/thread_task_runner_handle.h"
|
| #include "chrome/browser/chrome_notification_types.h"
|
| #include "chrome/browser/chromeos/login/existing_user_controller.h"
|
| #include "chrome/browser/chromeos/login/test/oobe_base_test.h"
|
| @@ -43,8 +46,8 @@ class OobeTest : public OobeBaseTest {
|
| void TearDownOnMainThread() override {
|
| // If the login display is still showing, exit gracefully.
|
| if (LoginDisplayHost::default_host()) {
|
| - base::MessageLoop::current()->PostTask(FROM_HERE,
|
| - base::Bind(&chrome::AttemptExit));
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| + FROM_HERE, base::Bind(&chrome::AttemptExit));
|
| content::RunMessageLoop();
|
| }
|
|
|
|
|