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

Unified Diff: tools/android/forwarder2/device_controller.cc

Issue 555093002: Fix WeakPtrFactory ordering problems in src/tools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added the comment explaining WeakPtrFactory ordering 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 | « tools/android/forwarder2/device_controller.h ('k') | tools/android/forwarder2/self_deleter_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/forwarder2/device_controller.cc
diff --git a/tools/android/forwarder2/device_controller.cc b/tools/android/forwarder2/device_controller.cc
index 7a4c0ad20eb4fa98c55aea7e517bd8f2690dbf26..a4cb9c75dc37a319eb933cf1de18b6a578163fca 100644
--- a/tools/android/forwarder2/device_controller.cc
+++ b/tools/android/forwarder2/device_controller.cc
@@ -47,10 +47,10 @@ void DeviceController::Start() {
DeviceController::DeviceController(scoped_ptr<Socket> host_socket,
int exit_notifier_fd)
- : weak_ptr_factory_(this),
- host_socket_(host_socket.Pass()),
+ : host_socket_(host_socket.Pass()),
exit_notifier_fd_(exit_notifier_fd),
- construction_task_runner_(base::MessageLoopProxy::current()) {
+ construction_task_runner_(base::MessageLoopProxy::current()),
+ weak_ptr_factory_(this) {
host_socket_->AddEventFd(exit_notifier_fd);
}
« no previous file with comments | « tools/android/forwarder2/device_controller.h ('k') | tools/android/forwarder2/self_deleter_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698