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

Unified Diff: device/bluetooth/bluetooth_profile.cc

Issue 243963002: Implement Bluetooth server socket support for RFCOMM on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Short url Created 6 years, 8 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 | « no previous file | device/bluetooth/bluetooth_profile_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_profile_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698