Index: chromeos/components/tether/ble_connection_manager.h |
diff --git a/chromeos/components/tether/ble_connection_manager.h b/chromeos/components/tether/ble_connection_manager.h |
index 96a01b88cdbfcfb9d3d2f7787573cee5ae61d806..3558d27479c38d376259a925e1a3ae8c66918793 100644 |
--- a/chromeos/components/tether/ble_connection_manager.h |
+++ b/chromeos/components/tether/ble_connection_manager.h |
@@ -22,6 +22,7 @@ |
namespace cryptauth { |
class BluetoothThrottler; |
+class CryptAuthService; |
} // namespace cryptauth |
namespace chromeos { |
@@ -65,14 +66,8 @@ class BleConnectionManager : public BleScanner::Observer { |
const std::string& payload) = 0; |
}; |
- class Delegate { |
- public: |
- virtual std::unique_ptr<cryptauth::SecureChannel::Delegate> |
- CreateSecureChannelDelegate() = 0; |
- }; |
- |
BleConnectionManager( |
- std::unique_ptr<Delegate> delegate, |
+ cryptauth::CryptAuthService* cryptauth_service, |
scoped_refptr<device::BluetoothAdapter> adapter, |
const LocalDeviceDataProvider* local_device_data_provider, |
const cryptauth::RemoteBeaconSeedFetcher* remote_beacon_seed_fetcher, |
@@ -180,7 +175,7 @@ class BleConnectionManager : public BleScanner::Observer { |
}; |
BleConnectionManager( |
- std::unique_ptr<Delegate> delegate, |
+ cryptauth::CryptAuthService* cryptauth_service, |
scoped_refptr<device::BluetoothAdapter> adapter, |
std::unique_ptr<BleScanner> ble_scanner, |
std::unique_ptr<BleAdvertiser> ble_advertiser, |
@@ -206,7 +201,7 @@ class BleConnectionManager : public BleScanner::Observer { |
const cryptauth::SecureChannel::Status& old_status, |
const cryptauth::SecureChannel::Status& new_status); |
- std::unique_ptr<Delegate> delegate_; |
+ cryptauth::CryptAuthService* cryptauth_service_; |
scoped_refptr<device::BluetoothAdapter> adapter_; |
std::unique_ptr<BleScanner> ble_scanner_; |
std::unique_ptr<BleAdvertiser> ble_advertiser_; |