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

Issue 2728623004: Fix getting notified twice after subscribe to notifications and call readValue (Closed)

Created:
3 years, 9 months ago by juncai
Modified:
3 years, 9 months ago
Reviewers:
ortuno
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

Fix getting notified twice after subscribe to notifications and call readValue The CL: https://codereview.chromium.org/2718583002 adds code that sends an event on the readValue callback. So if subscribes to notifications and then calls readValue, will get notified twice. This CL fixes this issue. BUG=697702 Review-Url: https://codereview.chromium.org/2728623004 Cr-Commit-Position: refs/heads/master@{#455652} Committed: https://chromium.googlesource.com/chromium/src/+/50cead395565600cca22d02bf404ea1fc37e3897

Patch Set 1 : fix getting notified twice after subscribe to notifications and call readValue #

Patch Set 2 : clean up code #

Patch Set 3 : fixed device unittests #

Total comments: 6

Patch Set 4 : address comments #

Total comments: 6

Patch Set 5 : address more comments #

Patch Set 6 : address more comments #

Total comments: 4

Patch Set 7 : updated test code #

Messages

Total messages: 41 (31 generated)
juncai
Please take a look.
3 years, 9 months ago (2017-03-02 21:55:21 UTC) #6
ortuno
https://codereview.chromium.org/2728623004/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm (left): https://codereview.chromium.org/2728623004/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm#oldcode260 device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm:260: UpdateValueAndNotify(); Ah good old mac. There are actually no ...
3 years, 9 months ago (2017-03-03 05:28:37 UTC) #13
ortuno
also please run CQ before sending patches for review. It's hard to keep track which ...
3 years, 9 months ago (2017-03-03 05:31:04 UTC) #14
juncai
https://codereview.chromium.org/2728623004/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm (left): https://codereview.chromium.org/2728623004/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm#oldcode260 device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm:260: UpdateValueAndNotify(); On 2017/03/03 05:28:37, ortuno wrote: > Ah good ...
3 years, 9 months ago (2017-03-04 01:33:59 UTC) #19
ortuno
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (left): https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc#oldcode499 device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:499: // Callback that make sure GattCharacteristicValueChanged has been called ...
3 years, 9 months ago (2017-03-06 09:15:37 UTC) #20
juncai
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (left): https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc#oldcode499 device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:499: // Callback that make sure GattCharacteristicValueChanged has been called ...
3 years, 9 months ago (2017-03-08 23:20:39 UTC) #29
ortuno
lgtm! https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc#newcode556 device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:556: // TODO(juncai): remove this #if once the bug ...
3 years, 9 months ago (2017-03-09 00:01:52 UTC) #30
juncai
https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc#newcode556 device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:556: // TODO(juncai): remove this #if once the bug on ...
3 years, 9 months ago (2017-03-09 03:03:07 UTC) #35
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/2728623004/120001
3 years, 9 months ago (2017-03-09 03:03:53 UTC) #38
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 03:10:37 UTC) #41
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/50cead395565600cca22d02bf404...

Powered by Google App Engine
This is Rietveld 408576698