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

Issue 2476173002: bluetooth: Invalidate characteristics when disconnecting (Closed)

Created:
4 years, 1 month ago by ortuno
Modified:
4 years, 1 month ago
Reviewers:
scheib
CC:
blink-reviews, chromium-reviews, haraken, ortuno+watch_chromium.org, scheib+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Invalidate characteristics when disconnecting Remove characteristics from attribute instance map when a device disconnects or when disconnect is called. Check that the characteristic is in the attribute instance map and reject if it isn't. BUG=654950 Committed: https://crrev.com/35b0cbff31387ff3b69607850f5ccfe99e2d4817 Cr-Commit-Position: refs/heads/master@{#430788}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Improve names #

Patch Set 3 : Fix test expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -161 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html View 1 1 chunk +26 lines, -20 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getCharacteristic/gen-characteristic-device-disconnects-invalidates-objects.html View 1 chunk +18 lines, -17 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getCharacteristic/gen-characteristic-disconnect-invalidates-objects.html View 1 chunk +20 lines, -21 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/gen-characteristic-device-disconnects-invalidates-objects.html View 1 chunk +18 lines, -17 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/gen-characteristic-device-disconnects-invalidates-objects-with-uuid.html View 1 chunk +18 lines, -17 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/gen-characteristic-disconnect-invalidates-objects.html View 1 chunk +20 lines, -21 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/gen-characteristic-disconnect-invalidates-objects-with-uuid.html View 1 chunk +20 lines, -21 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/script-tests/characteristic-device-disconnects-invalidates-objects.js View 2 chunks +21 lines, -25 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/characteristic-disconnect-invalidates-objects.js View 1 chunk +49 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.h View 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp View 5 chunks +31 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (11 generated)
ortuno
scheib: PTAL
4 years, 1 month ago (2016-11-07 00:36:01 UTC) #4
scheib
LGTM https://codereview.chromium.org/2476173002/diff/1/third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html File third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html (right): https://codereview.chromium.org/2476173002/diff/1/third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html#newcode18 third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html:18: let reconnection = new Promise(resolve => { name ...
4 years, 1 month ago (2016-11-08 01:44:26 UTC) #7
ortuno
Thanks! https://codereview.chromium.org/2476173002/diff/1/third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html File third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html (right): https://codereview.chromium.org/2476173002/diff/1/third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html#newcode18 third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html:18: let reconnection = new Promise(resolve => { On ...
4 years, 1 month ago (2016-11-08 04:51:48 UTC) #9
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/2476173002/20001
4 years, 1 month ago (2016-11-08 04:51:59 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/330821)
4 years, 1 month ago (2016-11-08 07:25:03 UTC) #13
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/2476173002/40001
4 years, 1 month ago (2016-11-08 22:27:06 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-09 00:27:30 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 00:35:40 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/35b0cbff31387ff3b69607850f5ccfe99e2d4817
Cr-Commit-Position: refs/heads/master@{#430788}

Powered by Google App Engine
This is Rietveld 408576698