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

Issue 2481683002: bluetooth:android: Run error callback when characteristic is destroyed (Closed)

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

Description

bluetooth:android: Run error callback when characteristic is destroyed When a device disconnects we destroy its attributes. This meant that if a device disconnected during a gatt operation we would drop the callbacks in BluetoothRemoteGattCharacteristicAndroid. This patches fixes that by calling the error callback when the characteristic is being destroyed. BUG=621901 Committed: https://crrev.com/650a52d4b71f0c029b4278910ed7cf0a127fd3c4 Cr-Commit-Position: refs/heads/master@{#430468}

Patch Set 1 #

Patch Set 2 : Also fix windows #

Patch Set 3 : Fix windows #

Total comments: 2

Patch Set 4 : Fix TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -8 lines) Patch
M device/bluetooth/bluetooth_remote_gatt_characteristic_android.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc View 1 2 3 6 chunks +10 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (16 generated)
ortuno
scheib: PTAL
4 years, 1 month ago (2016-11-07 00:35:39 UTC) #4
scheib
LGTM, but please address: https://codereview.chromium.org/2481683002/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/2481683002/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc#newcode382 device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:382: #if defined(OS_ANDROID) || defined(OS_MACOSX) You ...
4 years, 1 month ago (2016-11-07 22:43:37 UTC) #15
ortuno
Thanks! https://codereview.chromium.org/2481683002/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/2481683002/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc#newcode382 device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:382: #if defined(OS_ANDROID) || defined(OS_MACOSX) On 2016/11/07 at 22:43:37, ...
4 years, 1 month ago (2016-11-08 00:05:13 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/2481683002/60001
4 years, 1 month ago (2016-11-08 00:05:39 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-08 01:37:21 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 01:43:23 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/650a52d4b71f0c029b4278910ed7cf0a127fd3c4
Cr-Commit-Position: refs/heads/master@{#430468}

Powered by Google App Engine
This is Rietveld 408576698