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

Issue 1264323002: bluetooth: Return specific message if Bluetooth Adapter is off (Closed)

Created:
5 years, 4 months ago by ortuno
Modified:
5 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bluetooth-web-bluetooth-action
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Return specific message if Bluetooth Adapter is off Per discussion in: https://github.com/WebBluetoothCG/web-bluetooth/issues/127#issuecomment-119698067 an off bluetooth adapter now rejects with NotFoundError. Also adds necessary fake adapters. Three-way patch to add 'BluetoothAdapter is off' error message: [1] Add constant to public WebBluetoothError. (http://crrev.com/1267843005) [2] This patch. [3] Add tests for Not present adapter and Off adapter. (http://crrev.com/1261993012) Drive-by fix: Inherits form |BaseAdapter| -> |EmptyAdapter| BUG=515573 Committed: https://crrev.com/bd3d4d8a10336091ecbc30f250ce40be5ebdbd57 Cr-Commit-Position: refs/heads/master@{#342485}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Add TODO and erase request_device_sessions #

Patch Set 5 : Add issue to TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -7 lines) Patch
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 4 chunks +40 lines, -4 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 4 chunks +43 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 36 (15 generated)
ortuno
@jyasskin: PTAL
5 years, 4 months ago (2015-08-03 23:02:09 UTC) #2
Jeffrey Yasskin
https://codereview.chromium.org/1264323002/diff/40001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1264323002/diff/40001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode305 content/browser/bluetooth/bluetooth_dispatcher_host.cc:305: Send(new BluetoothMsg_RequestDeviceError( Every Send needs to be matched to ...
5 years, 4 months ago (2015-08-05 17:13:14 UTC) #3
ortuno
https://codereview.chromium.org/1264323002/diff/40001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1264323002/diff/40001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode305 content/browser/bluetooth/bluetooth_dispatcher_host.cc:305: Send(new BluetoothMsg_RequestDeviceError( On 2015/08/05 at 17:13:14, Jeffrey Yasskin wrote: ...
5 years, 4 months ago (2015-08-05 18:01:53 UTC) #4
Jeffrey Yasskin
Ok, lgtm.
5 years, 4 months ago (2015-08-05 20:49:43 UTC) #5
ortuno
@scheib: PTAL
5 years, 4 months ago (2015-08-05 20:58:59 UTC) #7
scheib
LGTM
5 years, 4 months ago (2015-08-05 21:36:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1264323002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1264323002/80001
5 years, 4 months ago (2015-08-06 20:39:11 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/85897)
5 years, 4 months ago (2015-08-06 20:51:43 UTC) #13
ortuno
@asvitkine: PTAL at histograms.xml. No new histograms just added two values to an enum.
5 years, 4 months ago (2015-08-06 20:55:57 UTC) #15
Alexei Svitkine (slow)
lgtm
5 years, 4 months ago (2015-08-06 20:57:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1264323002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1264323002/80001
5 years, 4 months ago (2015-08-06 21:05:52 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/89977)
5 years, 4 months ago (2015-08-06 22:41:45 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1264323002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1264323002/80001
5 years, 4 months ago (2015-08-07 17:08:32 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/90519)
5 years, 4 months ago (2015-08-07 18:28:08 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1264323002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1264323002/80001
5 years, 4 months ago (2015-08-07 19:14:37 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/90630)
5 years, 4 months ago (2015-08-07 21:31:46 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1264323002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1264323002/80001
5 years, 4 months ago (2015-08-07 21:48:17 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/96774)
5 years, 4 months ago (2015-08-07 23:08:33 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1264323002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1264323002/80001
5 years, 4 months ago (2015-08-07 23:10:44 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 4 months ago (2015-08-08 00:01:06 UTC) #35
commit-bot: I haz the power
5 years, 4 months ago (2015-08-08 00:02:52 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bd3d4d8a10336091ecbc30f250ce40be5ebdbd57
Cr-Commit-Position: refs/heads/master@{#342485}

Powered by Google App Engine
This is Rietveld 408576698