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

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

Issue 2975483002: [CrOS Tether] Disconnect cleanly from active Tether networks when the user logs out or the Tether c… (Closed)
Patch Set: hansberry@ comment. Created 3 years, 5 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 b6af3b5f323f45fae4f5d09b859016c860e681dd..75b89c4e3a2819ea4d9c6f16ec625346e2ce1888 100644
--- a/chromeos/components/tether/initializer.cc
+++ b/chromeos/components/tether/initializer.cc
@@ -18,7 +18,7 @@
#include "chromeos/components/tether/network_connection_handler_tether_delegate.h"
#include "chromeos/components/tether/notification_presenter.h"
#include "chromeos/components/tether/tether_connector.h"
-#include "chromeos/components/tether/tether_disconnector.h"
+#include "chromeos/components/tether/tether_disconnector_impl.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"
@@ -94,6 +94,7 @@ void Initializer::Shutdown() {
void Initializer::RegisterProfilePrefs(PrefRegistrySimple* registry) {
ActiveHost::RegisterPrefs(registry);
TetherHostResponseRecorder::RegisterPrefs(registry);
+ TetherDisconnectorImpl::RegisterPrefs(registry);
}
Initializer::Initializer(
@@ -222,11 +223,11 @@ void Initializer::OnBluetoothAdapterAdvertisingIntervalSet(
network_configuration_remover_ =
base::MakeUnique<NetworkConfigurationRemover>(
network_state_handler_, managed_network_configuration_handler_);
- tether_disconnector_ = base::MakeUnique<TetherDisconnector>(
+ tether_disconnector_ = base::MakeUnique<TetherDisconnectorImpl>(
network_connection_handler_, network_state_handler_, active_host_.get(),
ble_connection_manager_.get(), network_configuration_remover_.get(),
tether_connector_.get(), device_id_tether_network_guid_map_.get(),
- tether_host_fetcher_.get());
+ tether_host_fetcher_.get(), pref_service_);
tether_network_disconnection_handler_ =
base::MakeUnique<TetherNetworkDisconnectionHandler>(
active_host_.get(), network_state_handler_,

Powered by Google App Engine
This is Rietveld 408576698