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

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

Issue 2918863002: [CrOS Tether] Update the KeepAliveTickle code to receive DeviceStatus updates. (Closed)
Patch Set: hansberry@ comments. Created 3 years, 6 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
« no previous file with comments | « chromeos/components/tether/initializer.h ('k') | chromeos/components/tether/keep_alive_operation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/components/tether/initializer.cc
diff --git a/chromeos/components/tether/initializer.cc b/chromeos/components/tether/initializer.cc
index 94ebddc4ad5abf2f86d8354acabb5da17fdbd03f..fe1ed4f0c4e1ea4bd7ab093381ca36b86f358747 100644
--- a/chromeos/components/tether/initializer.cc
+++ b/chromeos/components/tether/initializer.cc
@@ -13,6 +13,7 @@
#include "chromeos/components/tether/host_scan_device_prioritizer.h"
#include "chromeos/components/tether/host_scan_scheduler.h"
#include "chromeos/components/tether/host_scanner.h"
+#include "chromeos/components/tether/keep_alive_scheduler.h"
#include "chromeos/components/tether/local_device_data_provider.h"
#include "chromeos/components/tether/network_configuration_remover.h"
#include "chromeos/components/tether/network_connection_handler_tether_delegate.h"
@@ -197,6 +198,9 @@ void Initializer::OnBluetoothAdapterAdvertisingIntervalSet(
network_state_handler_, active_host_.get(),
tether_host_response_recorder_.get(),
device_id_tether_network_guid_map_.get());
+ keep_alive_scheduler_ = base::MakeUnique<KeepAliveScheduler>(
+ active_host_.get(), ble_connection_manager_.get(), host_scan_cache_.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(),
« no previous file with comments | « chromeos/components/tether/initializer.h ('k') | chromeos/components/tether/keep_alive_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698