| Index: chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc
|
| diff --git a/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc b/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc
|
| index f21b96fbbcbb2c71f52cf755d2898b100399d9f8..2815759fd49055ad2b692a490880641e60465bca 100644
|
| --- a/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc
|
| +++ b/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc
|
| @@ -9,7 +9,9 @@
|
| #include "base/bind.h"
|
| #include "base/location.h"
|
| #include "base/logging.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/sys_info.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "base/time/time.h"
|
| #include "chromeos/dbus/power_manager_client.h"
|
| #include "policy/proto/device_management_backend.pb.h"
|
| @@ -62,7 +64,8 @@ void DeviceCommandRebootJob::RunImpl(
|
| // performed and we invoke it. |kMinimumUptimeInMinutes| defines a lower limit
|
| // on the uptime to avoid uninterruptable reboot loops.
|
| if (delta > base::TimeDelta()) {
|
| - succeeded_callback.Run(nullptr);
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| + FROM_HERE, base::Bind(succeeded_callback, nullptr));
|
| return;
|
| }
|
|
|
|
|