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); |
} |