| Index: device/bluetooth/bluetooth_profile.cc
|
| diff --git a/device/bluetooth/bluetooth_profile.cc b/device/bluetooth/bluetooth_profile.cc
|
| index bf70ab82e6465f2c51a1bd7bc7fbd76309e8d1eb..1e41b26c3e82da7191581ecb9bf647bd9c2851db 100644
|
| --- a/device/bluetooth/bluetooth_profile.cc
|
| +++ b/device/bluetooth/bluetooth_profile.cc
|
| @@ -8,7 +8,6 @@
|
| #include "device/bluetooth/bluetooth_profile_chromeos.h"
|
| #elif defined(OS_MACOSX)
|
| #include "base/mac/mac_util.h"
|
| -#include "device/bluetooth/bluetooth_profile_mac.h"
|
| #elif defined(OS_WIN)
|
| #include "device/bluetooth/bluetooth_profile_win.h"
|
| #endif
|
| @@ -35,9 +34,14 @@ BluetoothProfile::BluetoothProfile() {
|
| }
|
|
|
| BluetoothProfile::~BluetoothProfile() {
|
| -
|
| }
|
|
|
| +// TODO(isherman): This is defined in BluetoothProfileMac.mm. Since the
|
| +// BluetoothProfile classes are soon going away, it's not really worth cleaning
|
| +// this up more.
|
| +BluetoothProfile* CreateBluetoothProfileMac(
|
| + const BluetoothUUID& uuid,
|
| + const BluetoothProfile::Options& options);
|
|
|
| // static
|
| void BluetoothProfile::Register(const BluetoothUUID& uuid,
|
| @@ -51,7 +55,7 @@ void BluetoothProfile::Register(const BluetoothUUID& uuid,
|
| BluetoothProfile* profile = NULL;
|
|
|
| if (base::mac::IsOSLionOrLater())
|
| - profile = new BluetoothProfileMac(uuid, options.name);
|
| + profile = CreateBluetoothProfileMac(uuid, options);
|
| callback.Run(profile);
|
| #elif defined(OS_WIN)
|
| BluetoothProfile* profile = NULL;
|
|
|