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

Unified Diff: components/cryptauth/ble/bluetooth_low_energy_weave_packet_receiver.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
« no previous file with comments | « components/cryptauth/ble/bluetooth_low_energy_weave_packet_receiver.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cryptauth/ble/bluetooth_low_energy_weave_packet_receiver.cc
diff --git a/components/cryptauth/ble/bluetooth_low_energy_weave_packet_receiver.cc b/components/cryptauth/ble/bluetooth_low_energy_weave_packet_receiver.cc
index c29bb1a393fc9dd87df9d37c365d2c6c7caf9238..b1055e86ba3fc4849b561dda4f7f3a69a5149600 100644
--- a/components/cryptauth/ble/bluetooth_low_energy_weave_packet_receiver.cc
+++ b/components/cryptauth/ble/bluetooth_low_energy_weave_packet_receiver.cc
@@ -21,7 +21,7 @@ const uint16_t kMaxPacketSizeLowerBound = 20;
} // namespace
-std::shared_ptr<BluetoothLowEnergyWeavePacketReceiver::Factory>
+BluetoothLowEnergyWeavePacketReceiver::Factory*
BluetoothLowEnergyWeavePacketReceiver::Factory::factory_instance_ = nullptr;
// static
@@ -29,14 +29,14 @@ std::unique_ptr<BluetoothLowEnergyWeavePacketReceiver>
BluetoothLowEnergyWeavePacketReceiver::Factory::NewInstance(
ReceiverType receiver_type) {
if (!factory_instance_) {
- factory_instance_.reset(new Factory());
+ factory_instance_ = new Factory();
}
return factory_instance_->BuildInstance(receiver_type);
}
// static
void BluetoothLowEnergyWeavePacketReceiver::Factory::SetInstanceForTesting(
- std::shared_ptr<Factory> factory) {
+ Factory* factory) {
factory_instance_ = factory;
}
« no previous file with comments | « components/cryptauth/ble/bluetooth_low_energy_weave_packet_receiver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698