Descriptionbluetooth: 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 #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 36 (15 generated)
|