OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/components/tether/initializer.h" | 5 #include "chromeos/components/tether/initializer.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chromeos/components/tether/active_host.h" | 8 #include "chromeos/components/tether/active_host.h" |
9 #include "chromeos/components/tether/active_host_network_state_updater.h" | 9 #include "chromeos/components/tether/active_host_network_state_updater.h" |
10 #include "chromeos/components/tether/ble_connection_manager.h" | 10 #include "chromeos/components/tether/ble_connection_manager.h" |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 remote_beacon_seed_fetcher_.get(), | 181 remote_beacon_seed_fetcher_.get(), |
182 cryptauth::BluetoothThrottlerImpl::GetInstance()); | 182 cryptauth::BluetoothThrottlerImpl::GetInstance()); |
183 tether_host_response_recorder_ = | 183 tether_host_response_recorder_ = |
184 base::MakeUnique<TetherHostResponseRecorder>(pref_service_); | 184 base::MakeUnique<TetherHostResponseRecorder>(pref_service_); |
185 host_scan_device_prioritizer_ = base::MakeUnique<HostScanDevicePrioritizer>( | 185 host_scan_device_prioritizer_ = base::MakeUnique<HostScanDevicePrioritizer>( |
186 tether_host_response_recorder_.get()); | 186 tether_host_response_recorder_.get()); |
187 wifi_hotspot_connector_ = base::MakeUnique<WifiHotspotConnector>( | 187 wifi_hotspot_connector_ = base::MakeUnique<WifiHotspotConnector>( |
188 network_state_handler_, network_connect_); | 188 network_state_handler_, network_connect_); |
189 active_host_ = | 189 active_host_ = |
190 base::MakeUnique<ActiveHost>(tether_host_fetcher_.get(), pref_service_); | 190 base::MakeUnique<ActiveHost>(tether_host_fetcher_.get(), pref_service_); |
| 191 wifi_hotspot_connector_ = base::MakeUnique<WifiHotspotConnector>( |
| 192 network_state_handler_, network_connect_); |
191 active_host_network_state_updater_ = | 193 active_host_network_state_updater_ = |
192 base::MakeUnique<ActiveHostNetworkStateUpdater>(active_host_.get(), | 194 base::MakeUnique<ActiveHostNetworkStateUpdater>(active_host_.get(), |
193 network_state_handler_); | 195 network_state_handler_); |
194 device_id_tether_network_guid_map_ = | 196 device_id_tether_network_guid_map_ = |
195 base::MakeUnique<DeviceIdTetherNetworkGuidMap>(); | 197 base::MakeUnique<DeviceIdTetherNetworkGuidMap>(); |
196 tether_connector_ = base::MakeUnique<TetherConnector>( | 198 tether_connector_ = base::MakeUnique<TetherConnector>( |
197 network_connection_handler_, network_state_handler_, | 199 network_connection_handler_, network_state_handler_, |
198 wifi_hotspot_connector_.get(), active_host_.get(), | 200 wifi_hotspot_connector_.get(), active_host_.get(), |
199 tether_host_fetcher_.get(), ble_connection_manager_.get(), | 201 tether_host_fetcher_.get(), ble_connection_manager_.get(), |
200 tether_host_response_recorder_.get(), | 202 tether_host_response_recorder_.get(), |
(...skipping 18 matching lines...) Expand all Loading... |
219 | 221 |
220 void Initializer::OnBluetoothAdapterAdvertisingIntervalError( | 222 void Initializer::OnBluetoothAdapterAdvertisingIntervalError( |
221 device::BluetoothAdvertisement::ErrorCode status) { | 223 device::BluetoothAdvertisement::ErrorCode status) { |
222 PA_LOG(ERROR) << "Failed to set Bluetooth advertisement interval; " | 224 PA_LOG(ERROR) << "Failed to set Bluetooth advertisement interval; " |
223 << "cannot use tether feature. Error code: " << status; | 225 << "cannot use tether feature. Error code: " << status; |
224 } | 226 } |
225 | 227 |
226 } // namespace tether | 228 } // namespace tether |
227 | 229 |
228 } // namespace chromeos | 230 } // namespace chromeos |
OLD | NEW |