diff options
author | erikchen <erikchen@chromium.org> | 2016-03-16 18:05:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-17 01:06:15 +0000 |
commit | 8468b4eb877dd991361f0da7541c7da961c8b3c7 (patch) | |
tree | e522fa57d1dd1d1f41a2cc1a98117b52a7c5f97c /device | |
parent | 3eb05e63d4dd60dadaa079729f122011b0febdac (diff) | |
download | chromium_src-8468b4eb877dd991361f0da7541c7da961c8b3c7.zip chromium_src-8468b4eb877dd991361f0da7541c7da961c8b3c7.tar.gz chromium_src-8468b4eb877dd991361f0da7541c7da961c8b3c7.tar.bz2 |
Replace -[IOBluetoothL2CAPChannel getDevice] with -[IOBluetoothL2CAPChannel device].
The former method is deprecated, the latter is not. They have the same
functionality.
https://developer.apple.com/library/mac/releasenotes/General/MacOSXLionAPIDiffs/IOBluetooth.html
BUG=592663
Review URL: https://codereview.chromium.org/1813533002
Cr-Commit-Position: refs/heads/master@{#381618}
Diffstat (limited to 'device')
-rw-r--r-- | device/bluetooth/bluetooth_l2cap_channel_mac.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/device/bluetooth/bluetooth_l2cap_channel_mac.mm b/device/bluetooth/bluetooth_l2cap_channel_mac.mm index b136d27..f0c3066 100644 --- a/device/bluetooth/bluetooth_l2cap_channel_mac.mm +++ b/device/bluetooth/bluetooth_l2cap_channel_mac.mm @@ -116,7 +116,7 @@ void BluetoothL2capChannelMac::SetSocket(BluetoothSocketMac* socket) { } IOBluetoothDevice* BluetoothL2capChannelMac::GetDevice() { - return [channel_ getDevice]; + return [channel_ device]; } uint16_t BluetoothL2capChannelMac::GetOutgoingMTU() { @@ -142,7 +142,7 @@ void BluetoothL2capChannelMac::OnChannelOpenComplete( } socket()->OnChannelOpenComplete( - BluetoothClassicDeviceMac::GetDeviceAddress([channel getDevice]), status); + BluetoothClassicDeviceMac::GetDeviceAddress([channel device]), status); } void BluetoothL2capChannelMac::OnChannelClosed( |