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

Unified Diff: components/proximity_auth/ble/bluetooth_low_energy_weave_packet_receiver.h

Issue 2075313002: Substituting legacy protocol with uWeave protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unittest memory leak Created 4 years, 5 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/proximity_auth/ble/bluetooth_low_energy_weave_packet_receiver.h
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_receiver.h b/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_receiver.h
index be4194122f15f26eeea71a3c48fba6889e70c39f..ece324c1af6a5fb0818729e8340bf08e270e00a1 100644
--- a/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_receiver.h
+++ b/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_receiver.h
@@ -114,7 +114,7 @@ class BluetoothLowEnergyWeavePacketReceiver {
ReceiverType receiver_type);
// Exposed for testing.
- static void SetInstanceForTesting(Factory* factory);
+ static void SetInstanceForTesting(std::shared_ptr<Factory> factory);
protected:
// Exposed for testing.
@@ -122,7 +122,7 @@ class BluetoothLowEnergyWeavePacketReceiver {
BuildInstance(ReceiverType receiver_type);
private:
- static Factory* factory_instance_;
+ static std::shared_ptr<Factory> factory_instance_;
};
~BluetoothLowEnergyWeavePacketReceiver();

Powered by Google App Engine
This is Rietveld 408576698