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

Unified Diff: chrome/browser/chromeos/policy/user_policy_disk_cache.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
Index: chrome/browser/chromeos/policy/user_policy_disk_cache.cc
diff --git a/chrome/browser/chromeos/policy/user_policy_disk_cache.cc b/chrome/browser/chromeos/policy/user_policy_disk_cache.cc
index c2eab4414c213ec05a6724016f8407184d394694..84fca893e0e8e83bbf5a3c63961ead7c6f1ab7d2 100644
--- a/chrome/browser/chromeos/policy/user_policy_disk_cache.cc
+++ b/chrome/browser/chromeos/policy/user_policy_disk_cache.cc
@@ -8,9 +8,10 @@
#include "base/files/file_util.h"
#include "base/location.h"
#include "base/logging.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"
@@ -26,8 +27,9 @@ UserPolicyDiskCache::UserPolicyDiskCache(
scoped_refptr<base::SequencedTaskRunner> background_task_runner)
: delegate_(delegate),
backing_file_path_(backing_file_path),
- 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 UserPolicyDiskCache::Load() {
DCHECK(origin_task_runner_->RunsTasksOnCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698