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

Unified Diff: components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.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_generator.h
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h b/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h
index 52a3aff3f84285e11192147b94f01412f90f484d..281badff070a9fc5ac95267db8de948f2d1ed480 100644
--- a/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h
+++ b/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h
@@ -27,7 +27,7 @@ class BluetoothLowEnergyWeavePacketGenerator {
NewInstance();
// Exposed for testing.
- static void SetInstanceForTesting(Factory* factory);
+ static void SetInstanceForTesting(std::shared_ptr<Factory> factory);
protected:
// Exposed for testing.
@@ -35,7 +35,7 @@ class BluetoothLowEnergyWeavePacketGenerator {
BuildInstance();
private:
- static Factory* factory_instance_;
+ static std::shared_ptr<Factory> factory_instance_;
};
virtual Packet CreateConnectionRequest();

Powered by Google App Engine
This is Rietveld 408576698