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

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

Issue 2792483002: [CrOS Tether] Create TetherConnector, which attempts to connect to a nearby tether host. (Closed)
Patch Set: hansberry@ comment. 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/fake_wifi_hotspot_connector.cc
diff --git a/chromeos/components/tether/fake_wifi_hotspot_connector.cc b/chromeos/components/tether/fake_wifi_hotspot_connector.cc
index cd325481c7eca93f9a6e8f07882c670694fd799d..d6a90e0dd5cdd22a5104ce28f22b06dd0a3bc090 100644
--- a/chromeos/components/tether/fake_wifi_hotspot_connector.cc
+++ b/chromeos/components/tether/fake_wifi_hotspot_connector.cc
@@ -12,16 +12,9 @@ namespace chromeos {
namespace tether {
-// static
-std::unique_ptr<FakeWifiHotspotConnector> FakeWifiHotspotConnector::Create() {
- return base::WrapUnique(
- new FakeWifiHotspotConnector(NetworkStateHandler::InitializeForTest()));
-}
-
FakeWifiHotspotConnector::FakeWifiHotspotConnector(
- std::unique_ptr<NetworkStateHandler> network_state_handler)
- : WifiHotspotConnector(network_state_handler.get(), nullptr),
- network_state_handler_(std::move(network_state_handler)) {}
+ NetworkStateHandler* network_state_handler)
+ : WifiHotspotConnector(network_state_handler, nullptr) {}
FakeWifiHotspotConnector::~FakeWifiHotspotConnector() {}

Powered by Google App Engine
This is Rietveld 408576698