| Index: components/cryptauth/ble/bluetooth_low_energy_weave_client_connection.cc
|
| diff --git a/components/cryptauth/ble/bluetooth_low_energy_weave_client_connection.cc b/components/cryptauth/ble/bluetooth_low_energy_weave_client_connection.cc
|
| index 42351b9e6a679017d55d7a82c5de2cfe07528ea0..5c9fae46d2c8c706ca951d62cf137792969d9603 100644
|
| --- a/components/cryptauth/ble/bluetooth_low_energy_weave_client_connection.cc
|
| +++ b/components/cryptauth/ble/bluetooth_low_energy_weave_client_connection.cc
|
| @@ -38,7 +38,7 @@ const int kMaxNumberOfRetryAttempts = 2;
|
| } // namespace
|
|
|
| // static
|
| -std::shared_ptr<BluetoothLowEnergyWeaveClientConnection::Factory>
|
| +BluetoothLowEnergyWeaveClientConnection::Factory*
|
| BluetoothLowEnergyWeaveClientConnection::Factory::factory_instance_ =
|
| nullptr;
|
|
|
| @@ -51,7 +51,7 @@ BluetoothLowEnergyWeaveClientConnection::Factory::NewInstance(
|
| const device::BluetoothUUID remote_service_uuid,
|
| BluetoothThrottler* bluetooth_throttler) {
|
| if (!factory_instance_) {
|
| - factory_instance_.reset(new Factory());
|
| + factory_instance_ = new Factory();
|
| }
|
| return factory_instance_->BuildInstance(
|
| remote_device,
|
| @@ -63,7 +63,7 @@ BluetoothLowEnergyWeaveClientConnection::Factory::NewInstance(
|
|
|
| // static
|
| void BluetoothLowEnergyWeaveClientConnection::Factory::SetInstanceForTesting(
|
| - std::shared_ptr<Factory> factory) {
|
| + Factory* factory) {
|
| factory_instance_ = factory;
|
| }
|
|
|
|
|