Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Unified Diff: chrome/browser/chromeos/policy/user_policy_token_loader.cc

Issue 1118773004: [chrome/browser/chromeos/policy] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments->2 Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/policy/user_policy_disk_cache.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « chrome/browser/chromeos/policy/user_policy_disk_cache.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698