Chromium Code Reviews| 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 0357ad95276aca951b3d3a10d7032ff4c230c32f..c425fdae82eba9c115b0b085341583ecaf25bb40 100644 |
| --- a/device/bluetooth/bluetooth_low_energy_device_mac.mm |
| +++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm |
| @@ -75,6 +75,7 @@ BluetoothLowEnergyDeviceMac::~BluetoothLowEnergyDeviceMac() { |
| void BluetoothLowEnergyDeviceMac::Update(CBPeripheral* peripheral, |
|
scheib
2015/06/30 16:58:18
If a device is known, added to the adapter, and th
krstnmnlsn
2015/06/30 17:39:11
Yes BluetoothAdapterMac::LowEnergyDeviceUpdated(..
|
| NSDictionary* advertisementData, |
| int rssi) { |
| + last_update_time = [NSDate date]; |
|
armansito
2015/06/30 20:44:39
Does Chrome have ARC enabled? If you're explicitly
krstnmnlsn
2015/07/01 17:37:16
We don't use ARC. Meant for this to be a scoped_n
|
| peripheral_.reset([peripheral retain]); |
| rssi_ = rssi; |
| ClearServiceData(); |
| @@ -226,6 +227,10 @@ void BluetoothLowEnergyDeviceMac::CreateGattConnection( |
| NOTIMPLEMENTED(); |
| } |
| +NSDate* BluetoothLowEnergyDeviceMac::GetLastUpdateTime() const { |
| + return last_update_time; |
| +} |
| + |
| std::string BluetoothLowEnergyDeviceMac::GetDeviceName() const { |
| return base::SysNSStringToUTF8([peripheral_ name]); |
| } |