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

Unified Diff: base/win/object_watcher.h

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
Index: base/win/object_watcher.h
diff --git a/base/win/object_watcher.h b/base/win/object_watcher.h
index 4222c200696e32c621b8c4cfb1f5949f0d3a1adb..bf7f8b3e92c2860ceabb2c245b94135bf949b047 100644
--- a/base/win/object_watcher.h
+++ b/base/win/object_watcher.h
@@ -88,12 +88,13 @@ class BASE_EXPORT ObjectWatcher : public MessageLoop::DestructionObserver {
virtual void WillDestroyCurrentMessageLoop();
// Internal state.
- WeakPtrFactory<ObjectWatcher> weak_factory_;
Closure callback_;
HANDLE object_; // The object being watched
HANDLE wait_object_; // Returned by RegisterWaitForSingleObject
MessageLoop* origin_loop_; // Used to get back to the origin thread
+ WeakPtrFactory<ObjectWatcher> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(ObjectWatcher);
};

Powered by Google App Engine
This is Rietveld 408576698