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

Issue 2721233002: bluetooth: Better disconnected error messages for characteristic retrieval. (Closed)

Created:
3 years, 9 months ago by ortuno
Modified:
3 years, 9 months ago
Reviewers:
scheib, dcheng
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), dglazkov+blink, haraken, ortuno+watch_chromium.org, qsr+mojo_chromium.org, scheib+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Better disconnected error messages for characteristic retrieval. Also refactor how disconnected messages are generated. BUG=684445 Review-Url: https://codereview.chromium.org/2721233002 Cr-Commit-Position: refs/heads/master@{#455413} Committed: https://chromium.googlesource.com/chromium/src/+/c71e0a42a3eb47e551bafaa4e5d53f481a9bf89e

Patch Set 1 #

Patch Set 2 : Fix win compile error #

Total comments: 2

Patch Set 3 : Generalize comment: #

Patch Set 4 : Generalize comment: #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Total comments: 2

Patch Set 7 : Address dcheng's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -51 lines) Patch
M third_party/WebKit/LayoutTests/bluetooth/script-tests/service/garbage-collection-ran-during-error.js View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/service/garbage-collection-ran-during-success.js View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristic/device-disconnects-before.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristic/device-disconnects-during.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristic/disconnect-called-before.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristic/disconnect-called-during.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristic/gen-garbage-collection-ran-during-error.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristic/gen-garbage-collection-ran-during-success.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristic/reconnect-during.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/device-disconnects-before.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/device-disconnects-before-with-uuid.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/device-disconnects-during.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/device-disconnects-during-with-uuid.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/disconnect-called-before.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/disconnect-called-before-with-uuid.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/disconnect-called-during.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/disconnect-called-during-with-uuid.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/gen-garbage-collection-ran-during-error.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/gen-garbage-collection-ran-during-error-with-uuid.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/gen-garbage-collection-ran-during-success.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/gen-garbage-collection-ran-during-success-with-uuid.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/reconnect-during.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/reconnect-during-with-uuid.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothError.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp View 1 2 3 4 5 6 2 chunks +26 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp View 1 2 3 4 3 chunks +4 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp View 1 2 3 4 2 chunks +4 lines, -7 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 38 (26 generated)
ortuno
3 years, 9 months ago (2017-03-01 20:46:23 UTC) #10
scheib
lgtm with comment fix https://codereview.chromium.org/2721233002/diff/20001/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h File third_party/WebKit/Source/modules/bluetooth/BluetoothError.h (right): https://codereview.chromium.org/2721233002/diff/20001/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h#newcode14 third_party/WebKit/Source/modules/bluetooth/BluetoothError.h:14: // Used generate DOMExceptions for ...
3 years, 9 months ago (2017-03-04 19:07:31 UTC) #11
ortuno
Thanks! https://codereview.chromium.org/2721233002/diff/20001/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h File third_party/WebKit/Source/modules/bluetooth/BluetoothError.h (right): https://codereview.chromium.org/2721233002/diff/20001/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h#newcode14 third_party/WebKit/Source/modules/bluetooth/BluetoothError.h:14: // Used generate DOMExceptions for errors when the ...
3 years, 9 months ago (2017-03-07 04:18:20 UTC) #18
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/2721233002/100001
3 years, 9 months ago (2017-03-07 05:15:03 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/379490)
3 years, 9 months ago (2017-03-07 05:23:05 UTC) #24
ortuno
dcheng: PTAL
3 years, 9 months ago (2017-03-07 05:25:59 UTC) #26
dcheng
lgtm https://codereview.chromium.org/2721233002/diff/100001/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp (right): https://codereview.chromium.org/2721233002/diff/100001/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp#newcode15 third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp:15: } Super minor nit: Add // namespace And ...
3 years, 9 months ago (2017-03-07 08:19:37 UTC) #27
ortuno
Thanks! https://codereview.chromium.org/2721233002/diff/100001/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp (right): https://codereview.chromium.org/2721233002/diff/100001/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp#newcode15 third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp:15: } On 2017/03/07 at 08:19:36, dcheng wrote: > ...
3 years, 9 months ago (2017-03-07 22:24:00 UTC) #29
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/2721233002/120001
3 years, 9 months ago (2017-03-07 22:25:11 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/396568)
3 years, 9 months ago (2017-03-08 02:43:37 UTC) #33
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/2721233002/120001
3 years, 9 months ago (2017-03-08 07:26:04 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 09:24:57 UTC) #38
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/c71e0a42a3eb47e551bafaa4e5d5...

Powered by Google App Engine
This is Rietveld 408576698