| Index: chromeos/dbus/bluetooth_media_transport_client.cc
|
| diff --git a/chromeos/dbus/bluetooth_media_transport_client.cc b/chromeos/dbus/bluetooth_media_transport_client.cc
|
| index 2be8a5639efa46f7f140eb62af71d1f91a0db2ad..9851cbcb8f1b501a3778afec4b875ffd6cc73ce0 100644
|
| --- a/chromeos/dbus/bluetooth_media_transport_client.cc
|
| +++ b/chromeos/dbus/bluetooth_media_transport_client.cc
|
| @@ -241,7 +241,16 @@ class BluetoothMediaTransportClientImpl
|
| if (reader.PopFileDescriptor(&fd) &&
|
| reader.PopUint16(&read_mtu) &&
|
| reader.PopUint16(&write_mtu)) {
|
| - callback.Run(fd, read_mtu, write_mtu);
|
| + fd.CheckValidity();
|
| + DCHECK(fd.is_valid());
|
| +
|
| + VLOG(1) << "OnAcquireSuccess - fd: "<< fd.value()
|
| + <<", read MTU: " << read_mtu
|
| + <<", write MTU: " << write_mtu;
|
| +
|
| + // The ownership of the file descriptor is transferred to the user
|
| + // application.
|
| + callback.Run(&fd, read_mtu, write_mtu);
|
| return;
|
| }
|
|
|
|
|