Index: device/bluetooth/dbus/fake_bluetooth_media_transport_client.cc |
diff --git a/device/bluetooth/dbus/fake_bluetooth_media_transport_client.cc b/device/bluetooth/dbus/fake_bluetooth_media_transport_client.cc |
index 039805a4ba594ea69d28da7074d034fcaae9ade5..838fe017aa2b3151dc9341e1330e4c607c5fe5a1 100644 |
--- a/device/bluetooth/dbus/fake_bluetooth_media_transport_client.cc |
+++ b/device/bluetooth/dbus/fake_bluetooth_media_transport_client.cc |
@@ -323,8 +323,8 @@ void FakeBluetoothMediaTransportClient::AcquireInternal( |
DCHECK((fds[0] > kInvalidFd) && (fds[1] > kInvalidFd)); |
transport->input_fd.reset(new base::File(fds[0])); |
- dbus::FileDescriptor out_fd(fds[1]); |
- callback.Run(&out_fd, kDefaultReadMtu, kDefaultWriteMtu); |
+ base::ScopedFD out_fd(fds[1]); |
+ callback.Run(std::move(out_fd), kDefaultReadMtu, kDefaultWriteMtu); |
SetState(endpoint_path, "active"); |
} |