| Index: chrome/browser/chromeos/policy/device_system_use_24hour_clock_browsertest.cc
|
| diff --git a/chrome/browser/chromeos/policy/device_system_use_24hour_clock_browsertest.cc b/chrome/browser/chromeos/policy/device_system_use_24hour_clock_browsertest.cc
|
| index b660bc8c0d65bc16c77caf610969835611ed43b1..7c91663379dafc8bc98cbe5e552b1c83370753e5 100644
|
| --- a/chrome/browser/chromeos/policy/device_system_use_24hour_clock_browsertest.cc
|
| +++ b/chrome/browser/chromeos/policy/device_system_use_24hour_clock_browsertest.cc
|
| @@ -7,8 +7,11 @@
|
| #include "ash/system/date/date_view.h"
|
| #include "ash/system/user/login_status.h"
|
| #include "base/command_line.h"
|
| +#include "base/location.h"
|
| #include "base/macros.h"
|
| #include "base/message_loop/message_loop.h"
|
| +#include "base/single_thread_task_runner.h"
|
| +#include "base/threading/thread_task_runner_handle.h"
|
| #include "chrome/browser/chromeos/login/ui/login_display_host.h"
|
| #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h"
|
| #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h"
|
| @@ -43,8 +46,8 @@ class SystemUse24HourClockPolicyTest
|
| 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();
|
| }
|
| }
|
|
|