| Index: chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc
|
| diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc
|
| index 5503434f1d9b3b1b1e09a80a1d44f19e0e1b201d..2002873d5c31272caa2eae872c165a00b846c021 100644
|
| --- a/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc
|
| +++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc
|
| @@ -8,16 +8,16 @@
|
|
|
| #include "base/utf_string_conversions.h"
|
| #include "base/values.h"
|
| -#include "chrome/browser/chromeos/bluetooth/bluetooth_device.h"
|
| +#include "chrome/browser/chromeos/bluetooth/bluetooth_device_interface.h"
|
| #include "chrome/common/extensions/api/experimental_bluetooth.h"
|
|
|
| namespace extensions {
|
| namespace api {
|
| namespace experimental_bluetooth {
|
|
|
| -// Fill in a Device object from a chromeos::BluetoothDevice.
|
| +// Fill in a Device object from a chromeos::BluetoothDeviceInterface.
|
| void BluetoothDeviceToApiDevice(
|
| - const chromeos::BluetoothDevice& device,
|
| + const chromeos::BluetoothDeviceInterface& device,
|
| Device* out) {
|
| out->name = UTF16ToUTF8(device.GetName());
|
| out->address = device.address();
|
| @@ -27,7 +27,8 @@ void BluetoothDeviceToApiDevice(
|
| }
|
|
|
| // The caller takes ownership of the returned pointer.
|
| -base::Value* BluetoothDeviceToValue(const chromeos::BluetoothDevice& device) {
|
| +base::Value* BluetoothDeviceToValue(
|
| + const chromeos::BluetoothDeviceInterface& device) {
|
| extensions::api::experimental_bluetooth::Device api_device;
|
| BluetoothDeviceToApiDevice(device, &api_device);
|
| return api_device.ToValue().release();
|
|
|