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

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

Issue 2844973002: [CrOS Tether] Create TetherHostResponseRecorder, which records ConnectTetheringResponses and Tether… (Closed)
Patch Set: Changed "Connectable" wording to "Connected". 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 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 c0de8948232c9ef7da91eae5248cea12c0bccc36..f27621fc5dee7cd1229888bce53dfac700ab7b7f 100644
--- a/chromeos/components/tether/initializer.cc
+++ b/chromeos/components/tether/initializer.cc
@@ -18,6 +18,7 @@
#include "chromeos/components/tether/tether_connector.h"
#include "chromeos/components/tether/tether_device_state_manager.h"
#include "chromeos/components/tether/tether_host_fetcher.h"
+#include "chromeos/components/tether/tether_host_response_recorder.h"
#include "chromeos/components/tether/tether_network_disconnection_handler.h"
#include "chromeos/components/tether/wifi_hotspot_connector.h"
#include "chromeos/network/managed_network_configuration_handler.h"
@@ -90,7 +91,7 @@ void Initializer::Shutdown() {
// static
void Initializer::RegisterProfilePrefs(PrefRegistrySimple* registry) {
ActiveHost::RegisterPrefs(registry);
- HostScanDevicePrioritizer::RegisterPrefs(registry);
+ TetherHostResponseRecorder::RegisterPrefs(registry);
}
Initializer::Initializer(
@@ -179,8 +180,10 @@ void Initializer::OnBluetoothAdapterAdvertisingIntervalSet(
cryptauth_service_, adapter, local_device_data_provider_.get(),
remote_beacon_seed_fetcher_.get(),
cryptauth::BluetoothThrottlerImpl::GetInstance());
- host_scan_device_prioritizer_ =
- base::MakeUnique<HostScanDevicePrioritizer>(pref_service_);
+ tether_host_response_recorder_ =
+ base::MakeUnique<TetherHostResponseRecorder>(pref_service_);
+ host_scan_device_prioritizer_ = base::MakeUnique<HostScanDevicePrioritizer>(
+ tether_host_response_recorder_.get());
wifi_hotspot_connector_ = base::MakeUnique<WifiHotspotConnector>(
network_state_handler_, network_connect_);
active_host_ =
@@ -194,7 +197,7 @@ void Initializer::OnBluetoothAdapterAdvertisingIntervalSet(
network_connection_handler_, network_state_handler_,
wifi_hotspot_connector_.get(), active_host_.get(),
tether_host_fetcher_.get(), ble_connection_manager_.get(),
- host_scan_device_prioritizer_.get(),
+ tether_host_response_recorder_.get(),
device_id_tether_network_guid_map_.get());
network_configuration_remover_ =
base::MakeUnique<NetworkConfigurationRemover>(
@@ -205,8 +208,9 @@ void Initializer::OnBluetoothAdapterAdvertisingIntervalSet(
network_configuration_remover_.get());
host_scanner_ = base::MakeUnique<HostScanner>(
tether_host_fetcher_.get(), ble_connection_manager_.get(),
- host_scan_device_prioritizer_.get(), network_state_handler_,
- notification_presenter_.get(), device_id_tether_network_guid_map_.get());
+ host_scan_device_prioritizer_.get(), tether_host_response_recorder_.get(),
+ network_state_handler_, notification_presenter_.get(),
+ device_id_tether_network_guid_map_.get());
// TODO(khorimoto): Hook up HostScanScheduler. Currently, we simply start a
// new scan once the user logs in.
« no previous file with comments | « chromeos/components/tether/initializer.h ('k') | chromeos/components/tether/mock_host_scan_device_prioritizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698