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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
182 remote_beacon_seed_fetcher_.get(), | 182 remote_beacon_seed_fetcher_.get(), |
183 cryptauth::BluetoothThrottlerImpl::GetInstance()); | 183 cryptauth::BluetoothThrottlerImpl::GetInstance()); |
184 tether_host_response_recorder_ = | 184 tether_host_response_recorder_ = |
185 base::MakeUnique<TetherHostResponseRecorder>(pref_service_); | 185 base::MakeUnique<TetherHostResponseRecorder>(pref_service_); |
186 host_scan_device_prioritizer_ = base::MakeUnique<HostScanDevicePrioritizer>( | 186 host_scan_device_prioritizer_ = base::MakeUnique<HostScanDevicePrioritizer>( |
187 tether_host_response_recorder_.get()); | 187 tether_host_response_recorder_.get()); |
188 wifi_hotspot_connector_ = base::MakeUnique<WifiHotspotConnector>( | 188 wifi_hotspot_connector_ = base::MakeUnique<WifiHotspotConnector>( |
189 network_state_handler_, network_connect_); | 189 network_state_handler_, network_connect_); |
190 active_host_ = | 190 active_host_ = |
191 base::MakeUnique<ActiveHost>(tether_host_fetcher_.get(), pref_service_); | 191 base::MakeUnique<ActiveHost>(tether_host_fetcher_.get(), pref_service_); |
192 wifi_hotspot_connector_ = base::MakeUnique<WifiHotspotConnector>( | |
Kyle Horimoto
2017/05/03 01:53:33
Delete this.
lesliewatkins
2017/05/03 22:00:24
Done.
| |
193 network_state_handler_, network_connect_); | |
192 active_host_network_state_updater_ = | 194 active_host_network_state_updater_ = |
193 base::MakeUnique<ActiveHostNetworkStateUpdater>(active_host_.get(), | 195 base::MakeUnique<ActiveHostNetworkStateUpdater>(active_host_.get(), |
194 network_state_handler_); | 196 network_state_handler_); |
195 device_id_tether_network_guid_map_ = | 197 device_id_tether_network_guid_map_ = |
196 base::MakeUnique<DeviceIdTetherNetworkGuidMap>(); | 198 base::MakeUnique<DeviceIdTetherNetworkGuidMap>(); |
197 tether_connector_ = base::MakeUnique<TetherConnector>( | 199 tether_connector_ = base::MakeUnique<TetherConnector>( |
198 network_connection_handler_, network_state_handler_, | 200 network_connection_handler_, network_state_handler_, |
199 wifi_hotspot_connector_.get(), active_host_.get(), | 201 wifi_hotspot_connector_.get(), active_host_.get(), |
200 tether_host_fetcher_.get(), ble_connection_manager_.get(), | 202 tether_host_fetcher_.get(), ble_connection_manager_.get(), |
201 tether_host_response_recorder_.get(), | 203 tether_host_response_recorder_.get(), |
(...skipping 22 matching lines...) Expand all Loading... | |
224 | 226 |
225 void Initializer::OnBluetoothAdapterAdvertisingIntervalError( | 227 void Initializer::OnBluetoothAdapterAdvertisingIntervalError( |
226 device::BluetoothAdvertisement::ErrorCode status) { | 228 device::BluetoothAdvertisement::ErrorCode status) { |
227 PA_LOG(ERROR) << "Failed to set Bluetooth advertisement interval; " | 229 PA_LOG(ERROR) << "Failed to set Bluetooth advertisement interval; " |
228 << "cannot use tether feature. Error code: " << status; | 230 << "cannot use tether feature. Error code: " << status; |
229 } | 231 } |
230 | 232 |
231 } // namespace tether | 233 } // namespace tether |
232 | 234 |
233 } // namespace chromeos | 235 } // namespace chromeos |
OLD | NEW |