| Index: device/bluetooth/bluetooth_profile_mac.mm
|
| diff --git a/device/bluetooth/bluetooth_profile_mac.mm b/device/bluetooth/bluetooth_profile_mac.mm
|
| index ca50f06f5d8e5dad0d25f813a8c775249988c48f..c0658a9423f4069cabbf32cf04fd9a7034c7e228 100644
|
| --- a/device/bluetooth/bluetooth_profile_mac.mm
|
| +++ b/device/bluetooth/bluetooth_profile_mac.mm
|
| @@ -59,8 +59,8 @@ void BluetoothProfileMac::Unregister() {
|
| }
|
|
|
| void BluetoothProfileMac::SetConnectionCallback(
|
| - const SocketCallback& callback) {
|
| - socket_callback_ = callback;
|
| + const ConnectionCallback& callback) {
|
| + connection_callback_ = callback;
|
| }
|
|
|
| bool BluetoothProfileMac::Connect(IOBluetoothDevice* device) {
|
| @@ -70,7 +70,8 @@ bool BluetoothProfileMac::Connect(IOBluetoothDevice* device) {
|
| scoped_refptr<BluetoothSocket> socket(
|
| BluetoothSocketMac::CreateBluetoothSocket(record));
|
| if (socket.get() != NULL) {
|
| - socket_callback_.Run(socket);
|
| + BluetoothDeviceMac device_mac(device);
|
| + connection_callback_.Run(&device_mac, socket);
|
| return true;
|
| }
|
| }
|
|
|