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

Unified Diff: components/policy/core/browser/url_blacklist_manager.cc

Issue 1130753002: [components/policy] Use ThreadTaskRunnerHandle instead of LoopProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | components/policy/core/common/async_policy_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/browser/url_blacklist_manager.cc
diff --git a/components/policy/core/browser/url_blacklist_manager.cc b/components/policy/core/browser/url_blacklist_manager.cc
index 4e39e4e58a29d6adf47142c768c26a2334c0ba09..9f86a3c6a210992a2019d277b30c4bff4398a419 100644
--- a/components/policy/core/browser/url_blacklist_manager.cc
+++ b/components/policy/core/browser/url_blacklist_manager.cc
@@ -7,12 +7,13 @@
#include "base/bind.h"
#include "base/files/file_path.h"
#include "base/location.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/prefs/pref_service.h"
#include "base/sequenced_task_runner.h"
+#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/task_runner_util.h"
+#include "base/thread_task_runner_handle.h"
#include "base/values.h"
#include "components/policy/core/common/policy_pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
@@ -406,7 +407,7 @@ URLBlacklistManager::URLBlacklistManager(
io_task_runner_(io_task_runner),
segment_url_(segment_url),
override_blacklist_(override_blacklist),
- ui_task_runner_(base::MessageLoopProxy::current()),
+ ui_task_runner_(base::ThreadTaskRunnerHandle::Get()),
blacklist_(new URLBlacklist(segment_url)),
ui_weak_ptr_factory_(this),
io_weak_ptr_factory_(this) {
« no previous file with comments | « no previous file | components/policy/core/common/async_policy_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698