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

Unified Diff: device/bluetooth/dbus/fake_bluetooth_media_transport_client.h

Issue 2443803002: Remove stl_util's deletion function use from device/. (Closed)
Patch Set: _ Created 4 years, 2 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: device/bluetooth/dbus/fake_bluetooth_media_transport_client.h
diff --git a/device/bluetooth/dbus/fake_bluetooth_media_transport_client.h b/device/bluetooth/dbus/fake_bluetooth_media_transport_client.h
index d034f3833b3744a388ecf1d7e57b229900929518..4415ddac652a18e320dfe65e5dc8dd4b313ab682 100644
--- a/device/bluetooth/dbus/fake_bluetooth_media_transport_client.h
+++ b/device/bluetooth/dbus/fake_bluetooth_media_transport_client.h
@@ -98,7 +98,7 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothMediaTransportClient
// assigned with a transport path, an object of Transport is created.
struct Transport {
Transport(const dbus::ObjectPath& transport_path,
- Properties* transport_properties);
+ std::unique_ptr<Properties> transport_properties);
~Transport();
// An unique transport path.
@@ -134,7 +134,8 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothMediaTransportClient
// Map of endpoints with valid transport. Each pair is composed of an endpoint
// path and a Transport structure containing a transport path and its
// properties.
- std::map<dbus::ObjectPath, Transport*> endpoint_to_transport_map_;
+ std::map<dbus::ObjectPath, std::unique_ptr<Transport>>
+ endpoint_to_transport_map_;
// Map of valid transports. Each pair is composed of a transport path as the
// key and an endpoint path as the value. This map is used to get the
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_input_client.cc ('k') | device/bluetooth/dbus/fake_bluetooth_media_transport_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698