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

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

Issue 573133003: Code re-factor related to WeakPtrFactory in src/component module (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: 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 8ec9170340eb1ae780bc40e8f36f09e0bc617649..631ac7c706df4a6d9f0619767c2095dff0d3a63d 100644
--- a/components/policy/core/browser/url_blacklist_manager.cc
+++ b/components/policy/core/browser/url_blacklist_manager.cc
@@ -401,15 +401,15 @@ URLBlacklistManager::URLBlacklistManager(
const scoped_refptr<base::SequencedTaskRunner>& io_task_runner,
URLBlacklist::SegmentURLCallback segment_url,
OverrideBlacklistCallback override_blacklist)
- : ui_weak_ptr_factory_(this),
- pref_service_(pref_service),
+ : pref_service_(pref_service),
background_task_runner_(background_task_runner),
io_task_runner_(io_task_runner),
segment_url_(segment_url),
override_blacklist_(override_blacklist),
- io_weak_ptr_factory_(this),
ui_task_runner_(base::MessageLoopProxy::current()),
- blacklist_(new URLBlacklist(segment_url)) {
+ blacklist_(new URLBlacklist(segment_url)),
+ ui_weak_ptr_factory_(this),
+ io_weak_ptr_factory_(this) {
pref_change_registrar_.Init(pref_service_);
base::Closure callback = base::Bind(&URLBlacklistManager::ScheduleUpdate,
base::Unretained(this));
« no previous file with comments | « components/policy/core/browser/url_blacklist_manager.h ('k') | components/policy/core/common/async_policy_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698