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

Issue 1229473005: BluetoothAdapterMac::LowEnergyDeviceUpdated() Implemented (Closed)

Created:
5 years, 5 months ago by krstnmnlsn
Modified:
5 years, 5 months ago
Reviewers:
scheib, armansito
CC:
chromium-reviews, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@hash
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Low energy devices are now inserted into the adapter's |devices_| list when found (ie when the didDiscoverPeripheral message is sent to the CBCentralManagerDelegate). Devices are also updated when new information is returned. BUG=496987 Committed: https://crrev.com/bbc9fafbff50e2f7a02044e84c022d46ee526157 Cr-Commit-Position: refs/heads/master@{#339321}

Patch Set 1 : #

Total comments: 7

Patch Set 2 : Scheib's comments #

Total comments: 2

Patch Set 3 : moving 'return' #

Total comments: 2

Patch Set 4 : now with readable logic #

Total comments: 4

Patch Set 5 : Arman comments #

Patch Set 6 : pulling in changes from prev CL #

Patch Set 7 : pulling in changes from hash CL #

Patch Set 8 : pulling in origin/master #

Patch Set 9 : s/advertisementData/advertisement_data #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -7 lines) Patch
M device/bluetooth/bluetooth_adapter_mac.mm View 1 2 3 4 5 6 7 1 chunk +33 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac_unittest.mm View 1 2 3 4 5 6 7 8 4 chunks +58 lines, -5 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 24 (10 generated)
krstnmnlsn
Hey, finally implemented actually adding low energy devices to |devices_| :)
5 years, 5 months ago (2015-07-08 00:11:58 UTC) #5
scheib
https://codereview.chromium.org/1229473005/diff/60001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/1229473005/diff/60001/device/bluetooth/bluetooth_adapter_mac.mm#newcode398 device/bluetooth/bluetooth_adapter_mac.mm:398: if (devices_.count(device_address)) { Push back if you like, but ...
5 years, 5 months ago (2015-07-08 05:20:36 UTC) #6
krstnmnlsn
Thanks, comments addressed. Also made (and copied over) some changes so that the code will ...
5 years, 5 months ago (2015-07-13 17:26:23 UTC) #8
scheib
https://codereview.chromium.org/1229473005/diff/60001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/1229473005/diff/60001/device/bluetooth/bluetooth_adapter_mac.mm#newcode410 device/bluetooth/bluetooth_adapter_mac.mm:410: FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, On 2015/07/13 17:26:23, krstnmnlsn wrote: > On ...
5 years, 5 months ago (2015-07-13 18:24:39 UTC) #9
krstnmnlsn
thanks! https://codereview.chromium.org/1229473005/diff/100001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/1229473005/diff/100001/device/bluetooth/bluetooth_adapter_mac.mm#newcode417 device/bluetooth/bluetooth_adapter_mac.mm:417: FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, On 2015/07/13 18:24:39, scheib wrote: > ...
5 years, 5 months ago (2015-07-13 20:40:43 UTC) #10
scheib
https://codereview.chromium.org/1229473005/diff/120001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/1229473005/diff/120001/device/bluetooth/bluetooth_adapter_mac.mm#newcode421 device/bluetooth/bluetooth_adapter_mac.mm:421: } else { OK, if you're going with early ...
5 years, 5 months ago (2015-07-13 20:47:22 UTC) #11
krstnmnlsn
now with reader-friendly logic https://codereview.chromium.org/1229473005/diff/120001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/1229473005/diff/120001/device/bluetooth/bluetooth_adapter_mac.mm#newcode421 device/bluetooth/bluetooth_adapter_mac.mm:421: } else { On 2015/07/13 ...
5 years, 5 months ago (2015-07-13 20:54:34 UTC) #12
scheib
LGTM
5 years, 5 months ago (2015-07-13 20:57:00 UTC) #13
krstnmnlsn
Hey Arman, with this CL BLE devices are finally added to the |devices_| list as ...
5 years, 5 months ago (2015-07-13 21:18:36 UTC) #15
armansito
lgtm with nits https://codereview.chromium.org/1229473005/diff/140001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/1229473005/diff/140001/device/bluetooth/bluetooth_adapter_mac.mm#newcode411 device/bluetooth/bluetooth_adapter_mac.mm:411: BluetoothDevice*& device_reference = devices_[device_address]; Please add ...
5 years, 5 months ago (2015-07-15 18:14:42 UTC) #16
krstnmnlsn
Thanks Arman x2 :) https://codereview.chromium.org/1229473005/diff/140001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/1229473005/diff/140001/device/bluetooth/bluetooth_adapter_mac.mm#newcode411 device/bluetooth/bluetooth_adapter_mac.mm:411: BluetoothDevice*& device_reference = devices_[device_address]; On ...
5 years, 5 months ago (2015-07-15 20:38:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1229473005/280001
5 years, 5 months ago (2015-07-17 19:51:07 UTC) #22
commit-bot: I haz the power
Committed patchset #9 (id:280001)
5 years, 5 months ago (2015-07-17 20:43:16 UTC) #23
commit-bot: I haz the power
5 years, 5 months ago (2015-07-17 20:44:32 UTC) #24
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/bbc9fafbff50e2f7a02044e84c022d46ee526157
Cr-Commit-Position: refs/heads/master@{#339321}

Powered by Google App Engine
This is Rietveld 408576698