Index: chromeos/components/tether/fake_wifi_hotspot_connector.h |
diff --git a/chromeos/components/tether/fake_wifi_hotspot_connector.h b/chromeos/components/tether/fake_wifi_hotspot_connector.h |
index 1f4c17208a40cdbc262b48061cd982c1260c203b..6518eab625777643951532547250a0f84e000d66 100644 |
--- a/chromeos/components/tether/fake_wifi_hotspot_connector.h |
+++ b/chromeos/components/tether/fake_wifi_hotspot_connector.h |
@@ -17,7 +17,7 @@ namespace tether { |
// Test double for WifiHotspotConnector. |
class FakeWifiHotspotConnector : public WifiHotspotConnector { |
public: |
- static std::unique_ptr<FakeWifiHotspotConnector> Create(); |
+ FakeWifiHotspotConnector(NetworkStateHandler* network_state_handler); |
~FakeWifiHotspotConnector() override; |
// Pass an empty string for |wifi_guid| to signify a failed connection. |
@@ -34,18 +34,10 @@ class FakeWifiHotspotConnector : public WifiHotspotConnector { |
const WifiHotspotConnector::WifiConnectionCallback& callback) override; |
private: |
- FakeWifiHotspotConnector( |
- std::unique_ptr<NetworkStateHandler> network_state_handler); |
- |
std::string most_recent_ssid_; |
std::string most_recent_password_; |
WifiHotspotConnector::WifiConnectionCallback most_recent_callback_; |
- // Not actually used. Only stored to keep the pointer valid for the lifetime |
- // of the object so that AddObserver() and RemoteObserver() can be called in |
- // the base class constructor/destructor. |
- std::unique_ptr<NetworkStateHandler> network_state_handler_; |
- |
DISALLOW_COPY_AND_ASSIGN(FakeWifiHotspotConnector); |
}; |