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

Unified Diff: base/win/object_watcher.cc

Issue 565123002: Maintaing the proper order of initialization WeakPtrFactory (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
« base/cancelable_callback.h ('K') | « base/win/object_watcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/object_watcher.cc
diff --git a/base/win/object_watcher.cc b/base/win/object_watcher.cc
index 3bb1cd32c52cab81c935971c6611f9b0f974dd25..fe209f5e3385ba58b496c56f8f9418c4391e8b57 100644
--- a/base/win/object_watcher.cc
+++ b/base/win/object_watcher.cc
@@ -13,10 +13,10 @@ namespace win {
//-----------------------------------------------------------------------------
ObjectWatcher::ObjectWatcher()
- : weak_factory_(this),
- object_(NULL),
+ : object_(NULL),
wait_object_(NULL),
- origin_loop_(NULL) {
+ origin_loop_(NULL),
+ weak_factory_(this) {
}
ObjectWatcher::~ObjectWatcher() {
« base/cancelable_callback.h ('K') | « base/win/object_watcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698