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

Side by Side Diff: chromeos/components/tether/initializer.cc

Issue 2819303002: Changed wifi arcs to mobile bars for Tether network. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 base::MakeUnique<LocalDeviceDataProvider>(cryptauth_service_); 158 base::MakeUnique<LocalDeviceDataProvider>(cryptauth_service_);
159 remote_beacon_seed_fetcher_ = 159 remote_beacon_seed_fetcher_ =
160 base::MakeUnique<cryptauth::RemoteBeaconSeedFetcher>( 160 base::MakeUnique<cryptauth::RemoteBeaconSeedFetcher>(
161 cryptauth_service_->GetCryptAuthDeviceManager()); 161 cryptauth_service_->GetCryptAuthDeviceManager());
162 ble_connection_manager_ = base::MakeUnique<BleConnectionManager>( 162 ble_connection_manager_ = base::MakeUnique<BleConnectionManager>(
163 cryptauth_service_, adapter, local_device_data_provider_.get(), 163 cryptauth_service_, adapter, local_device_data_provider_.get(),
164 remote_beacon_seed_fetcher_.get(), 164 remote_beacon_seed_fetcher_.get(),
165 cryptauth::BluetoothThrottlerImpl::GetInstance()); 165 cryptauth::BluetoothThrottlerImpl::GetInstance());
166 host_scan_device_prioritizer_ = 166 host_scan_device_prioritizer_ =
167 base::MakeUnique<HostScanDevicePrioritizer>(pref_service_); 167 base::MakeUnique<HostScanDevicePrioritizer>(pref_service_);
168 wifi_hotspot_connector_ = base::MakeUnique<WifiHotspotConnector>(
169 network_state_handler_, network_connect_);
170 active_host_ = 168 active_host_ =
171 base::MakeUnique<ActiveHost>(tether_host_fetcher_.get(), pref_service_); 169 base::MakeUnique<ActiveHost>(tether_host_fetcher_.get(), pref_service_);
170 wifi_hotspot_connector_ = base::MakeUnique<WifiHotspotConnector>(
171 network_state_handler_, network_connect_, active_host_.get());
172 active_host_network_state_updater_ = 172 active_host_network_state_updater_ =
173 base::MakeUnique<ActiveHostNetworkStateUpdater>(active_host_.get(), 173 base::MakeUnique<ActiveHostNetworkStateUpdater>(active_host_.get(),
174 network_state_handler_); 174 network_state_handler_);
175 device_id_tether_network_guid_map_ = 175 device_id_tether_network_guid_map_ =
176 base::MakeUnique<DeviceIdTetherNetworkGuidMap>(); 176 base::MakeUnique<DeviceIdTetherNetworkGuidMap>();
177 tether_connector_ = base::MakeUnique<TetherConnector>( 177 tether_connector_ = base::MakeUnique<TetherConnector>(
178 network_connect_, network_state_handler_, wifi_hotspot_connector_.get(), 178 network_connect_, network_state_handler_, wifi_hotspot_connector_.get(),
179 active_host_.get(), tether_host_fetcher_.get(), 179 active_host_.get(), tether_host_fetcher_.get(),
180 ble_connection_manager_.get(), host_scan_device_prioritizer_.get(), 180 ble_connection_manager_.get(), host_scan_device_prioritizer_.get(),
181 device_id_tether_network_guid_map_.get()); 181 device_id_tether_network_guid_map_.get());
182 host_scanner_ = base::MakeUnique<HostScanner>( 182 host_scanner_ = base::MakeUnique<HostScanner>(
183 tether_host_fetcher_.get(), ble_connection_manager_.get(), 183 tether_host_fetcher_.get(), ble_connection_manager_.get(),
184 host_scan_device_prioritizer_.get(), network_state_handler_, 184 host_scan_device_prioritizer_.get(), network_state_handler_,
185 notification_presenter_.get()); 185 notification_presenter_.get());
186 186
187 // TODO(khorimoto): Hook up HostScanScheduler. Currently, we simply start a 187 // TODO(khorimoto): Hook up HostScanScheduler. Currently, we simply start a
188 // new scan once the user logs in. 188 // new scan once the user logs in.
189 host_scanner_->StartScan(); 189 host_scanner_->StartScan();
190 } 190 }
191 191
192 void Initializer::OnBluetoothAdapterAdvertisingIntervalError( 192 void Initializer::OnBluetoothAdapterAdvertisingIntervalError(
193 device::BluetoothAdvertisement::ErrorCode status) { 193 device::BluetoothAdvertisement::ErrorCode status) {
194 PA_LOG(ERROR) << "Failed to set Bluetooth advertisement interval; " 194 PA_LOG(ERROR) << "Failed to set Bluetooth advertisement interval; "
195 << "cannot use tether feature. Error code: " << status; 195 << "cannot use tether feature. Error code: " << status;
196 } 196 }
197 197
198 } // namespace tether 198 } // namespace tether
199 199
200 } // namespace chromeos 200 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698