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

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

Issue 2317593002: dbus: No dbus::FileDescriptor in BluetoothMediaTransportClient (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « device/bluetooth/dbus/bluetooth_media_transport_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
}
« no previous file with comments | « device/bluetooth/dbus/bluetooth_media_transport_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698