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

Issue 2652163002: bluetooth: Improve GATT disconnected error message. (Closed)

Created:
3 years, 11 months ago by scheib
Modified:
3 years, 10 months ago
Reviewers:
ortuno
CC:
blink-reviews, chromium-reviews, fbeaufortchromium, haraken, ortuno+watch_chromium.org, scheib+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Improve GATT disconnected error message. BluetoothRemoteGATTServer.cpp: Suggest corrective action of calling gatt.connect when an operation fails due to being disconnected. Also, reduce required number of strings by merging two similar error messages given a disconnected state. It doesn't matter if the device was already disconnected or became disconnected after an operation has already started. In both cases the action that must be taken is to connect again. generate.py: Generated layout tests must now deal with 'git cl format' causing template .js files to have line breaks. The regular expression is updated to accomodate this. BUG=684445 Review-Url: https://codereview.chromium.org/2652163002 Cr-Commit-Position: refs/heads/master@{#446895} Committed: https://chromium.googlesource.com/chromium/src/+/1e43caf1c8478ce34a810418b55ddb244a29248b

Patch Set 1 #

Patch Set 2 : Merge TOT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -209 lines) Patch
M third_party/WebKit/LayoutTests/bluetooth/generate.py View 1 chunk +8 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/server/device-disconnects-before.js View 1 chunk +20 lines, -17 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/server/garbage-collection-ran-during-error.js View 1 chunk +20 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/server/garbage-collection-ran-during-success.js View 1 chunk +19 lines, -16 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/device-disconnects-during-error.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/device-disconnects-during-success.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/device-reconnects-during-error.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/device-reconnects-during-success.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/disconnect-called-before.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/disconnect-called-during-error.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/disconnect-called-during-success.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/disconnected-device.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/gen-device-disconnects-before.html View 1 chunk +17 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/gen-garbage-collection-ran-during-error.html View 1 chunk +18 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/gen-garbage-collection-ran-during-success.html View 1 chunk +16 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/reconnect-during-error.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/reconnect-during-success.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/device-disconnects-during-error-with-uuid.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/device-disconnects-during-success.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/device-disconnects-during-success-with-uuid.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/device-reconnects-during-error-with-uuid.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/device-reconnects-during-success.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/device-reconnects-during-success-with-uuid.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/disconnect-called-before.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/disconnect-called-before-with-uuid.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/disconnect-called-during-error-with-uuid.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/disconnect-called-during-success.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/disconnect-called-during-success-with-uuid.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/disconnected-device.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/disconnected-device-with-uuid.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-device-disconnects-before.html View 1 chunk +17 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-device-disconnects-before-with-uuid.html View 1 chunk +17 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-garbage-collection-ran-during-error.html View 1 chunk +18 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-garbage-collection-ran-during-error-with-uuid.html View 1 chunk +18 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-garbage-collection-ran-during-success.html View 1 chunk +16 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-garbage-collection-ran-during-success-with-uuid.html View 1 chunk +16 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/reconnect-during-error-with-uuid.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/reconnect-during-success.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/reconnect-during-success-with-uuid.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp View 1 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
scheib
3 years, 11 months ago (2017-01-25 06:00:53 UTC) #2
ortuno
this lgtm. Are you planning on submitting patches for the service and characteristic strings? https://cs.chromium.org/search/?q=kgattservernotconnected&sq=package:chromium&type=cs
3 years, 11 months ago (2017-01-26 21:28:36 UTC) #7
scheib
On 2017/01/26 21:28:36, ortuno wrote: > this lgtm. Are you planning on submitting patches for ...
3 years, 11 months ago (2017-01-26 23:04:11 UTC) #8
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/2652163002/1
3 years, 11 months ago (2017-01-26 23:05:09 UTC) #10
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/377123)
3 years, 11 months ago (2017-01-27 00:37:51 UTC) #12
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/2652163002/1
3 years, 10 months ago (2017-01-27 07:00:53 UTC) #14
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-01-27 08:04:13 UTC) #16
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/2652163002/20001
3 years, 10 months ago (2017-01-28 01:30:23 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/1e43caf1c8478ce34a810418b55ddb244a29248b
3 years, 10 months ago (2017-01-28 03:14:34 UTC) #22
scheib
3 years, 10 months ago (2017-01-28 16:13:53 UTC) #24
scheib
3 years, 10 months ago (2017-01-28 16:15:01 UTC) #25
Message was sent while issue was closed.
On 2017/01/28 16:13:53, scheib wrote:

Sorry, wrong issue, ignore this one.

Powered by Google App Engine
This is Rietveld 408576698