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; |