| Index: chrome/browser/chromeos/policy/enterprise_install_attributes.cc
|
| diff --git a/chrome/browser/chromeos/policy/enterprise_install_attributes.cc b/chrome/browser/chromeos/policy/enterprise_install_attributes.cc
|
| index 26454110527545d33717662d5fa6a0ae3f420c63..c303e9ad6a37e36692a46ba3a1644dae99d7bb2d 100644
|
| --- a/chrome/browser/chromeos/policy/enterprise_install_attributes.cc
|
| +++ b/chrome/browser/chromeos/policy/enterprise_install_attributes.cc
|
| @@ -13,9 +13,10 @@
|
| #include "base/location.h"
|
| #include "base/logging.h"
|
| #include "base/macros.h"
|
| -#include "base/message_loop/message_loop.h"
|
| #include "base/metrics/histogram_base.h"
|
| #include "base/metrics/histogram_macros.h"
|
| +#include "base/single_thread_task_runner.h"
|
| +#include "base/threading/thread_task_runner_handle.h"
|
| #include "base/time/time.h"
|
| #include "chrome/browser/chromeos/policy/proto/install_attributes.pb.h"
|
| #include "chromeos/cryptohome/cryptohome_util.h"
|
| @@ -375,11 +376,10 @@ void EnterpriseInstallAttributes::OnTpmOwnerCheckCompleted(
|
| bool result) {
|
| if (call_status != chromeos::DBUS_METHOD_CALL_SUCCESS &&
|
| dbus_retries_remaining) {
|
| - base::MessageLoop::current()->PostDelayedTask(
|
| + base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
| FROM_HERE,
|
| base::Bind(&EnterpriseInstallAttributes::TriggerConsistencyCheck,
|
| - weak_ptr_factory_.GetWeakPtr(),
|
| - dbus_retries_remaining - 1),
|
| + weak_ptr_factory_.GetWeakPtr(), dbus_retries_remaining - 1),
|
| base::TimeDelta::FromSeconds(kDbusRetryIntervalInSeconds));
|
| return;
|
| }
|
|
|