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

Issue 2599303002: Bluetooth: macOS: BluetoothRemoteGattCharacteristicMac::SubscribeToNotifications (Closed)

Created:
3 years, 12 months ago by jlebel
Modified:
3 years, 11 months ago
CC:
chromium-reviews, mac-reviews_chromium.org, ortuno+watch_chromium.org, scheib+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bluetooth: macOS: Replacing BluetoothRemoteGattCharacteristicMac::StartNotifySession() by BluetoothRemoteGattCharacteristicMac::SubscribeToNotifications(). BUG=633191 Review-Url: https://codereview.chromium.org/2599303002 Cr-Commit-Position: refs/heads/master@{#443820} Committed: https://chromium.googlesource.com/chromium/src/+/230ba260170c6d7ab48a72a5f0eea01be95740f3

Patch Set 1 #

Patch Set 2 : Update #

Patch Set 3 : Fix from 2595373003 #

Patch Set 4 : Bluetooth: macOS: Replacing BluetoothRemoteGattCharacteristicMac::StartNotifySession() by Bluetooth… #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -61 lines) Patch
M device/bluetooth/bluetooth_remote_gatt_characteristic.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h View 1 2 chunks +2 lines, -7 lines 4 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm View 1 4 chunks +30 lines, -50 lines 5 comments Download

Messages

Total messages: 27 (20 generated)
jlebel
Hello Vincent, Can you review my patch? Thanks,
3 years, 11 months ago (2017-01-09 20:42:42 UTC) #16
scheib
LGTM
3 years, 11 months ago (2017-01-09 21:11:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2599303002/120001
3 years, 11 months ago (2017-01-15 21:58:57 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:120001) as https://chromium.googlesource.com/chromium/src/+/230ba260170c6d7ab48a72a5f0eea01be95740f3
3 years, 11 months ago (2017-01-15 23:37:21 UTC) #23
pkalinnikov
A revert of this CL (patchset #3 id:120001) has been created in https://codereview.chromium.org/2638753002/ by pkalinnikov@chromium.org. ...
3 years, 11 months ago (2017-01-16 14:25:57 UTC) #24
ortuno
I think we can simplify things a bit. Left some comments. https://codereview.chromium.org/2599303002/diff/140001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h (right): ...
3 years, 11 months ago (2017-01-16 22:56:27 UTC) #26
jlebel
3 years, 11 months ago (2017-01-20 14:04:58 UTC) #27
Message was sent while issue was closed.
Fix in crrev.com/2632253003

https://codereview.chromium.org/2599303002/diff/140001/device/bluetooth/bluet...
File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h (right):

https://codereview.chromium.org/2599303002/diff/140001/device/bluetooth/bluet...
device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h:132:
std::unique_ptr<BluetoothRemoteGattDescriptorMac>>
On 2017/01/16 22:56:26, ortuno (OOO until Jan 16th) wrote:
> I don't think we need a vector anymore. The StartNotifySession code should
make
> sure that there is only a single call to start notifications. A single
> PendingStartNotifyCall should be enough.

Done.

https://codereview.chromium.org/2599303002/diff/140001/device/bluetooth/bluet...
device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h:134:
base::WeakPtrFactory<BluetoothRemoteGattCharacteristicMac> weak_ptr_factory_;
On 2017/01/16 22:56:26, ortuno (OOO until Jan 16th) wrote:
> No need for this anymore. StartNotifySession will make sure there is only one
> call to start notifications at the same time.

Done.

https://codereview.chromium.org/2599303002/diff/140001/device/bluetooth/bluet...
File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm (right):

https://codereview.chromium.org/2599303002/diff/140001/device/bluetooth/bluet...
device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm:215: if
(IsNotifying()) {
On 2017/01/16 22:56:26, ortuno (OOO until Jan 16th) wrote:
> No need for this check. This is already handled by the StartNotifySession
code:
> 
>
https://cs.chromium.org/chromium/src/device/bluetooth/bluetooth_remote_gatt_c...

Done.

https://codereview.chromium.org/2599303002/diff/140001/device/bluetooth/bluet...
device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm:223: if
(!SupportsNotificationsOrIndications()) {
On 2017/01/16 22:56:26, ortuno (OOO until Jan 16th) wrote:
> Same here this is already handled by StartNotifySession:
> 
>
https://cs.chromium.org/chromium/src/device/bluetooth/bluetooth_remote_gatt_c...

Done.

Powered by Google App Engine
This is Rietveld 408576698