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

Unified Diff: components/policy/core/common/async_policy_provider.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
Index: components/policy/core/common/async_policy_provider.h
diff --git a/components/policy/core/common/async_policy_provider.h b/components/policy/core/common/async_policy_provider.h
index 879e9fa730dfc557cd215398466a4a4e4d95f706..301f15dabf38a786fba7d9d50f1f80f4305c2685 100644
--- a/components/policy/core/common/async_policy_provider.h
+++ b/components/policy/core/common/async_policy_provider.h
@@ -60,14 +60,14 @@ class POLICY_EXPORT AsyncPolicyProvider : public ConfigurationPolicyProvider,
// on the background thread but is owned by |this|.
AsyncPolicyLoader* loader_;
- // Used to get a WeakPtr to |this| for the update callback given to the
- // loader.
- base::WeakPtrFactory<AsyncPolicyProvider> weak_factory_;
-
// Callback used to synchronize RefreshPolicies() calls with the background
// thread. See the implementation for the details.
base::CancelableClosure refresh_callback_;
+ // Used to get a WeakPtr to |this| for the update callback given to the
+ // loader.
+ base::WeakPtrFactory<AsyncPolicyProvider> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(AsyncPolicyProvider);
};
« no previous file with comments | « components/policy/core/browser/url_blacklist_manager.cc ('k') | components/storage_monitor/volume_mount_watcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698