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

Unified Diff: components/cryptauth/ble/bluetooth_low_energy_weave_client_connection.cc

Issue 2844773002: [ProximityAuth] Remote static initializers from uWeave classes. (Closed)
Patch Set: 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: 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;
}

Powered by Google App Engine
This is Rietveld 408576698