Index: remoting/host/setup/host_starter.cc |
diff --git a/remoting/host/setup/host_starter.cc b/remoting/host/setup/host_starter.cc |
index 1fd3c17a33016b5c165d0ae938f102fc71bdf894..298be8ed7d45ddc1bfb4dd903f32d9c4d259802c 100644 |
--- a/remoting/host/setup/host_starter.cc |
+++ b/remoting/host/setup/host_starter.cc |
@@ -26,8 +26,8 @@ HostStarter::HostStarter( |
daemon_controller_(daemon_controller), |
consent_to_data_collection_(false), |
unregistering_host_(false), |
- weak_ptr_factory_(this), |
- weak_ptr_(weak_ptr_factory_.GetWeakPtr()) { |
+ weak_ptr_factory_(this) { |
+ weak_ptr_ = weak_ptr_factory_.GetWeakPtr(); |
main_task_runner_ = base::ThreadTaskRunnerHandle::Get(); |
} |