Index: chrome/browser/chromeos/policy/user_policy_token_loader.cc |
diff --git a/chrome/browser/chromeos/policy/user_policy_token_loader.cc b/chrome/browser/chromeos/policy/user_policy_token_loader.cc |
index 4434cfe24a979798ab61e9c9efaea71e24bf02a5..a928f722a95ea4c090aff51bbafc0b11e167249c 100644 |
--- a/chrome/browser/chromeos/policy/user_policy_token_loader.cc |
+++ b/chrome/browser/chromeos/policy/user_policy_token_loader.cc |
@@ -7,9 +7,10 @@ |
#include "base/bind.h" |
#include "base/files/file_util.h" |
#include "base/location.h" |
-#include "base/message_loop/message_loop_proxy.h" |
#include "base/metrics/histogram.h" |
#include "base/sequenced_task_runner.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "components/policy/core/common/cloud/enterprise_metrics.h" |
#include "policy/proto/device_management_local.pb.h" |
@@ -25,8 +26,9 @@ UserPolicyTokenLoader::UserPolicyTokenLoader( |
scoped_refptr<base::SequencedTaskRunner> background_task_runner) |
: delegate_(delegate), |
cache_file_(cache_file), |
- origin_task_runner_(base::MessageLoopProxy::current()), |
- background_task_runner_(background_task_runner) {} |
+ origin_task_runner_(base::ThreadTaskRunnerHandle::Get()), |
+ background_task_runner_(background_task_runner) { |
+} |
void UserPolicyTokenLoader::Load() { |
DCHECK(origin_task_runner_->RunsTasksOnCurrentThread()); |