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

Unified Diff: chromeos/components/tether/initializer.cc

Issue 2917803002: Tether: Display a 'setup required' notification when appropriate. (Closed)
Patch Set: Rebase. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/components/tether/initializer.cc
diff --git a/chromeos/components/tether/initializer.cc b/chromeos/components/tether/initializer.cc
index d88ae944212d26a0ff62166a17f60231583ee719..94ebddc4ad5abf2f86d8354acabb5da17fdbd03f 100644
--- a/chromeos/components/tether/initializer.cc
+++ b/chromeos/components/tether/initializer.cc
@@ -193,11 +193,24 @@ void Initializer::OnBluetoothAdapterAdvertisingIntervalSet(
network_state_handler_);
device_id_tether_network_guid_map_ =
base::MakeUnique<DeviceIdTetherNetworkGuidMap>();
+ host_scan_cache_ = base::MakeUnique<HostScanCache>(
+ network_state_handler_, active_host_.get(),
+ tether_host_response_recorder_.get(),
+ device_id_tether_network_guid_map_.get());
+ clock_ = base::MakeUnique<base::DefaultClock>();
+ host_scanner_ = base::MakeUnique<HostScanner>(
+ tether_host_fetcher_.get(), ble_connection_manager_.get(),
+ host_scan_device_prioritizer_.get(), tether_host_response_recorder_.get(),
+ notification_presenter_.get(), device_id_tether_network_guid_map_.get(),
+ host_scan_cache_.get(), clock_.get());
+ host_scan_scheduler_ = base::MakeUnique<HostScanScheduler>(
+ network_state_handler_, host_scanner_.get());
tether_connector_ = base::MakeUnique<TetherConnector>(
network_state_handler_, wifi_hotspot_connector_.get(), active_host_.get(),
tether_host_fetcher_.get(), ble_connection_manager_.get(),
tether_host_response_recorder_.get(),
- device_id_tether_network_guid_map_.get());
+ device_id_tether_network_guid_map_.get(), host_scan_cache_.get(),
+ notification_presenter_.get());
network_configuration_remover_ =
base::MakeUnique<NetworkConfigurationRemover>(
network_state_handler_, managed_network_configuration_handler_);
@@ -214,18 +227,6 @@ void Initializer::OnBluetoothAdapterAdvertisingIntervalSet(
base::MakeUnique<NetworkConnectionHandlerTetherDelegate>(
network_connection_handler_, tether_connector_.get(),
tether_disconnector_.get());
- host_scan_cache_ = base::MakeUnique<HostScanCache>(
- network_state_handler_, active_host_.get(),
- tether_host_response_recorder_.get(),
- device_id_tether_network_guid_map_.get());
- clock_ = base::MakeUnique<base::DefaultClock>();
- host_scanner_ = base::MakeUnique<HostScanner>(
- tether_host_fetcher_.get(), ble_connection_manager_.get(),
- host_scan_device_prioritizer_.get(), tether_host_response_recorder_.get(),
- notification_presenter_.get(), device_id_tether_network_guid_map_.get(),
- host_scan_cache_.get(), clock_.get());
- host_scan_scheduler_ = base::MakeUnique<HostScanScheduler>(
- network_state_handler_, host_scanner_.get());
// Because Initializer is created on each user log in, it's appropriate to
// call this method now.

Powered by Google App Engine
This is Rietveld 408576698