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

Unified Diff: device/bluetooth/bluetooth_device_mac.mm

Issue 180163009: chrome.bluetooth API improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ChromeOS Full build. 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 | « device/bluetooth/bluetooth_device_mac.h ('k') | device/bluetooth/bluetooth_device_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device_mac.mm
diff --git a/device/bluetooth/bluetooth_device_mac.mm b/device/bluetooth/bluetooth_device_mac.mm
index 6fbad23ee33270130c8612f77bb83b301939ba53..00ce0cf0eb7de49d7ad40803ee978a2cca1dbf85 100644
--- a/device/bluetooth/bluetooth_device_mac.mm
+++ b/device/bluetooth/bluetooth_device_mac.mm
@@ -36,6 +36,8 @@
namespace {
+const char kFailedToConnect[] = "Connection failed";
+
// Converts |uuid| to a IOBluetoothSDPUUID instance.
//
// |uuid| must be in the format of XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.
@@ -194,13 +196,13 @@ void BluetoothDeviceMac::ConnectToService(
}
void BluetoothDeviceMac::ConnectToProfile(
- device::BluetoothProfile* profile,
+ BluetoothProfile* profile,
const base::Closure& callback,
- const ErrorCallback& error_callback) {
+ const ConnectToProfileErrorCallback& error_callback) {
if (static_cast<BluetoothProfileMac*>(profile)->Connect(device_))
callback.Run();
else
- error_callback.Run();
+ error_callback.Run(kFailedToConnect);
}
void BluetoothDeviceMac::SetOutOfBandPairingData(
« no previous file with comments | « device/bluetooth/bluetooth_device_mac.h ('k') | device/bluetooth/bluetooth_device_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698