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

Issue 2727683003: bluetooth: Clean up connection errors (Closed)

Created:
3 years, 9 months ago by ortuno
Modified:
3 years, 9 months ago
CC:
Aaron Boodman, abarth-chromium, arv+watch_chromium.org, asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dbeam+watch-closure_chromium.org, dbeam+watch-options_chromium.org, dglazkov+blink, einbinder+watch-test-runner_chromium.org, extensions-reviews_chromium.org, haraken, jam, jlklein+watch-closure_chromium.org, jochen+watch_chromium.org, michaelpg+watch-options_chromium.org, mlamouri+watch-test-runner_chromium.org, mlamouri+watch-content_chromium.org, ortuno+watch_chromium.org, oshima+watch_chromium.org, Peter Beverloo, qsr+mojo_chromium.org, scheib+watch_chromium.org, viettrungluu+watch_chromium.org, vitalyp+closure_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Clean up connection error messages Android documentation is incomplete when it comes to connection error codes, which led us to believe that all values documented here[1] could be returned by the platform. We opened http://crbug.com/531058 to include all these values in our ConnectErrorCode enum. http://crrev.com/1464443002 was then submitted to include all these values in our enum. Upon further investigation we realized that these values were not being returned by the platform and needed to be removed from our ConnectErrorCode enum. This patch reverts the changes in http://crrev.com/1464443002 which means: 1. Removing the values from the enum 2. Changing all clients' switch statements that used the enum 3. Fixing test that used these values 4. Removing strings that described these errors Also http://crrev.com/1464443002 broke a test this patch also fixes that test. [1] https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html BUG=598341, 578191 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2727683003 Cr-Commit-Position: refs/heads/master@{#456617} Committed: https://chromium.googlesource.com/chromium/src/+/9187d13054b869580045f81d8d55f84c6cf150fa

Patch Set 1 #

Patch Set 2 : Fix android #

Patch Set 3 : format #

Patch Set 4 : format #

Total comments: 8

Patch Set 5 : Address scheib's comments #

Total comments: 2

Patch Set 6 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -396 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 1 chunk +0 lines, -21 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc View 2 chunks +3 lines, -16 lines 0 comments Download
M chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js View 1 chunk +0 lines, -21 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/gatt_connection/runtest.js View 2 chunks +0 lines, -14 lines 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.h View 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -23 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 3 chunks +7 lines, -30 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 chunk +0 lines, -45 lines 0 comments Download
M device/bluetooth/bluetooth_device.h View 1 chunk +0 lines, -7 lines 0 comments Download
M device/bluetooth/public/interfaces/adapter.mojom View 1 chunk +0 lines, -8 lines 0 comments Download
M device/bluetooth/public/interfaces/connect_result_type_converter.h View 2 chunks +2 lines, -20 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_private_api.cc View 1 2 3 4 5 2 chunks +0 lines, -21 lines 0 comments Download
M extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.cc View 1 2 3 4 5 4 chunks +0 lines, -15 lines 0 comments Download
M extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h View 1 chunk +0 lines, -5 lines 0 comments Download
M extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc View 2 chunks +0 lines, -21 lines 0 comments Download
M extensions/common/api/bluetooth_private.idl View 1 chunk +1 line, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/server/connect/connection-fails.html View 2 chunks +19 lines, -61 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp View 1 2 3 4 5 1 chunk +0 lines, -17 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/closure_compiler/externs/bluetooth_private.js View 1 chunk +0 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 45 (30 generated)
ortuno
scheib: PTAL
3 years, 9 months ago (2017-03-02 20:51:07 UTC) #15
scheib
Improve the description some to clarify how these enums are changing a bit -- are ...
3 years, 9 months ago (2017-03-07 06:20:22 UTC) #16
ortuno
> Improve the description some to clarify how these enums are changing a bit -- ...
3 years, 9 months ago (2017-03-08 01:46:10 UTC) #21
scheib
Thanks! https://codereview.chromium.org/2727683003/diff/60001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h (right): https://codereview.chromium.org/2727683003/diff/60001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h#newcode837 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h:837: // errorUUID(alias) returns a UUID with the top ...
3 years, 9 months ago (2017-03-08 02:36:09 UTC) #24
scheib
lgtm
3 years, 9 months ago (2017-03-08 02:36:20 UTC) #25
ortuno
isherman: PTAL at histograms.xml https://codereview.chromium.org/2727683003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2727683003/diff/80001/tools/metrics/histograms/histograms.xml#oldcode112684 tools/metrics/histograms/histograms.xml:112684: - <int value="10" label="Invalid Attribute ...
3 years, 9 months ago (2017-03-08 02:40:37 UTC) #27
Ilya Sherman
histograms.xml lgtm https://codereview.chromium.org/2727683003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2727683003/diff/80001/tools/metrics/histograms/histograms.xml#oldcode112684 tools/metrics/histograms/histograms.xml:112684: - <int value="10" label="Invalid Attribute Length"/> On ...
3 years, 9 months ago (2017-03-08 02:51:58 UTC) #28
ortuno
owners review please: rockot: chrome/browser/extensions/api/bluetooth_low_energy extensions/browser/api/bluetooth_low_energy extensions/common/api/bluetooth_private.idl stevenjb: chrome/browser/resources/options/ chrome/browser/ui/webui/options/ third_party/closure_compiler/externs/bluetooth_private.js dcheng: device/bluetooth/public/interfaces/adapter.mojom device/bluetooth/public/interfaces/connect_result_type_converter.h third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
3 years, 9 months ago (2017-03-08 09:08:17 UTC) #32
stevenjb
owner lgtm
3 years, 9 months ago (2017-03-08 17:16:22 UTC) #33
Ken Rockot(use gerrit already)
lgtm
3 years, 9 months ago (2017-03-08 17:44:25 UTC) #34
dcheng
lgtm
3 years, 9 months ago (2017-03-08 22:31: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/2727683003/100001
3 years, 9 months ago (2017-03-09 02:22:21 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/379875) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 9 months ago (2017-03-09 02:56:39 UTC) #40
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/2727683003/100001
3 years, 9 months ago (2017-03-14 02:08:28 UTC) #42
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 03:47:56 UTC) #45
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/9187d13054b869580045f81d8d55...

Powered by Google App Engine
This is Rietveld 408576698