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

Unified Diff: components/storage_monitor/portable_device_watcher_win.h

Issue 554233002: Refactoring the WeakPtrFactory usage, Member variables should appear before the WeakPtrFactory, to … (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 | « components/signin/core/browser/signin_manager.cc ('k') | components/suggestions/suggestions_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/storage_monitor/portable_device_watcher_win.h
diff --git a/components/storage_monitor/portable_device_watcher_win.h b/components/storage_monitor/portable_device_watcher_win.h
index cc5e54aac144c95d74e8ff928992b1217b62d02b..a0b47c44497b430ed606972e08480628091e26ec 100644
--- a/components/storage_monitor/portable_device_watcher_win.h
+++ b/components/storage_monitor/portable_device_watcher_win.h
@@ -132,12 +132,12 @@ class PortableDeviceWatcherWin {
// should not be performed on the UI thread.
scoped_refptr<base::SequencedTaskRunner> media_task_runner_;
- // Used by |media_task_runner_| to create cancelable callbacks.
- base::WeakPtrFactory<PortableDeviceWatcherWin> weak_ptr_factory_;
-
// The notifications object to use to signal newly attached devices.
StorageMonitor::Receiver* storage_notifications_;
blundell 2014/09/09 14:50:52 No change in initialization order is needed?
MRV 2014/09/10 03:01:20 I agree with you Mr.Blundell, I thought the order
blundell 2014/09/10 06:25:04 You've done the right thing, thanks.
+ // Used by |media_task_runner_| to create cancelable callbacks.
+ base::WeakPtrFactory<PortableDeviceWatcherWin> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(PortableDeviceWatcherWin);
};
« no previous file with comments | « components/signin/core/browser/signin_manager.cc ('k') | components/suggestions/suggestions_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698