| Index: device/bluetooth/bluetooth_low_energy_device_mac.mm
|
| diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.mm b/device/bluetooth/bluetooth_low_energy_device_mac.mm
|
| index fb7a379316516ccca0178031bc969c295d79f12d..6995dbedf4fca6c468039040ae2c2d1dba13c996 100644
|
| --- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
|
| +++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
|
| @@ -111,6 +111,12 @@ uint16_t BluetoothLowEnergyDeviceMac::GetAppearance() const {
|
| return 0;
|
| }
|
|
|
| +base::Optional<std::string> BluetoothLowEnergyDeviceMac::GetName() const {
|
| + if ([peripheral_ name])
|
| + return base::SysNSStringToUTF8([peripheral_ name]);
|
| + return base::nullopt;
|
| +}
|
| +
|
| int BluetoothLowEnergyDeviceMac::GetRSSI() const {
|
| return rssi_;
|
| }
|
| @@ -218,10 +224,6 @@ void BluetoothLowEnergyDeviceMac::ConnectToServiceInsecurely(
|
| NOTIMPLEMENTED();
|
| }
|
|
|
| -std::string BluetoothLowEnergyDeviceMac::GetDeviceName() const {
|
| - return base::SysNSStringToUTF8([peripheral_ name]);
|
| -}
|
| -
|
| void BluetoothLowEnergyDeviceMac::CreateGattConnectionImpl() {
|
| if (!IsGattConnected()) {
|
| GetMacAdapter()->CreateGattConnection(this);
|
|
|