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

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

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
« no previous file with comments | « no previous file | components/policy/core/browser/url_blacklist_manager.cc » ('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.h
diff --git a/components/policy/core/browser/url_blacklist_manager.h b/components/policy/core/browser/url_blacklist_manager.h
index dff8ac18863943e7a864232373068bc0389240bc..aed642b2001086d1b87f496736aa7a26e14733a2 100644
--- a/components/policy/core/browser/url_blacklist_manager.h
+++ b/components/policy/core/browser/url_blacklist_manager.h
@@ -196,9 +196,6 @@ class POLICY_EXPORT URLBlacklistManager {
// UI thread
// ---------
- // Used to post update tasks to the UI thread.
- base::WeakPtrFactory<URLBlacklistManager> ui_weak_ptr_factory_;
-
// Used to track the policies and update the blacklist on changes.
PrefChangeRegistrar pref_change_registrar_;
PrefService* pref_service_; // Weak.
@@ -219,15 +216,18 @@ class POLICY_EXPORT URLBlacklistManager {
// IO thread
// ---------
- // Used to get |weak_ptr_| to self on the IO thread.
- base::WeakPtrFactory<URLBlacklistManager> io_weak_ptr_factory_;
-
// Used to post tasks to the UI thread.
scoped_refptr<base::SequencedTaskRunner> ui_task_runner_;
// The current blacklist.
scoped_ptr<URLBlacklist> blacklist_;
+ // Used to post update tasks to the UI thread.
+ base::WeakPtrFactory<URLBlacklistManager> ui_weak_ptr_factory_;
+
+ // Used to get |weak_ptr_| to self on the IO thread.
+ base::WeakPtrFactory<URLBlacklistManager> io_weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(URLBlacklistManager);
};
« no previous file with comments | « no previous file | components/policy/core/browser/url_blacklist_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698