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

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

Issue 2310883003: dbus: No dbus::FileDescriptor in BluetoothProfileServiceProvider (Closed)
Patch Set: Fix tests 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
Index: device/bluetooth/dbus/fake_bluetooth_device_client.cc
diff --git a/device/bluetooth/dbus/fake_bluetooth_device_client.cc b/device/bluetooth/dbus/fake_bluetooth_device_client.cc
index 211cb026c591fb910bc7b01f428a653e56550c1b..76875d1ba7844ffa584c9d8b258b5fa83fe057cf 100644
--- a/device/bluetooth/dbus/fake_bluetooth_device_client.cc
+++ b/device/bluetooth/dbus/fake_bluetooth_device_client.cc
@@ -26,7 +26,6 @@
#include "base/threading/thread_task_runner_handle.h"
#include "base/threading/worker_pool.h"
#include "base/time/time.h"
-#include "dbus/file_descriptor.h"
#include "device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.h"
#include "device/bluetooth/dbus/bluez_dbus_manager.h"
#include "device/bluetooth/dbus/fake_bluetooth_adapter_client.h"
@@ -512,7 +511,7 @@ void FakeBluetoothDeviceClient::ConnectProfile(
base::WorkerPool::GetTaskRunner(false)
->PostTask(FROM_HERE, base::Bind(&SimulatedProfileSocket, fds[0]));
- std::unique_ptr<dbus::FileDescriptor> fd(new dbus::FileDescriptor(fds[1]));
+ base::ScopedFD fd(fds[1]);
// Post the new connection to the service provider.
BluetoothProfileServiceProvider::Delegate::Options options;

Powered by Google App Engine
This is Rietveld 408576698