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

Issue 2030973002: bluetooth: Handle two consecutives requestDevice calls. (Closed)

Created:
4 years, 6 months ago by ortuno
Modified:
4 years, 6 months ago
Reviewers:
Jeffrey Yasskin
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, jam, ortuno+watch_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@my-origin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Handle two consecutives requestDevice calls. WebBluetoothServiceImpl will close any open choosers when calling RequestDevice. BluetoothDeviceChooserController runs its error callback when being destroyed if there are any open chooser. BUG=616222 Committed: https://crrev.com/8eba1a9d135b69979dd20c1c8c49f4cfdb3ee6d7 Cr-Commit-Position: refs/heads/master@{#399836}

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : Address jyasskin's comments #

Patch Set 4 : Fix typo #

Patch Set 5 : Improve comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -5 lines) Patch
M content/browser/bluetooth/bluetooth_device_chooser_controller.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.cc View 1 2 3 4 1 chunk +6 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/requestDevice/consecutive-calls.html View 1 2 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030973002/20001
4 years, 6 months ago (2016-06-09 21:15:10 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-09 23:04:09 UTC) #4
ortuno
jyasskin: PTAL
4 years, 6 months ago (2016-06-09 23:47:23 UTC) #6
Jeffrey Yasskin
https://codereview.chromium.org/2030973002/diff/20001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): https://codereview.chromium.org/2030973002/diff/20001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode223 content/browser/bluetooth/bluetooth_device_chooser_controller.cc:223: error_callback_.Run(blink::mojom::WebBluetoothError::CHOOSER_CANCELLED); DCHECK(!error_callback_.is_null())? It'll crash in .Run() anyway, but it's ...
4 years, 6 months ago (2016-06-10 00:49:22 UTC) #7
Jeffrey Yasskin
lgtm
4 years, 6 months ago (2016-06-10 00:49:30 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030973002/40001
4 years, 6 months ago (2016-06-10 15:44:17 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030973002/60001
4 years, 6 months ago (2016-06-10 18:10:04 UTC) #12
ortuno
Thanks! https://codereview.chromium.org/2030973002/diff/20001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): https://codereview.chromium.org/2030973002/diff/20001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode223 content/browser/bluetooth/bluetooth_device_chooser_controller.cc:223: error_callback_.Run(blink::mojom::WebBluetoothError::CHOOSER_CANCELLED); On 2016/06/10 at 00:49:22, Jeffrey Yasskin wrote: ...
4 years, 6 months ago (2016-06-10 18:10:07 UTC) #13
Jeffrey Yasskin
https://codereview.chromium.org/2030973002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc File content/browser/bluetooth/web_bluetooth_service_impl.cc (right): https://codereview.chromium.org/2030973002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc#newcode656 content/browser/bluetooth/web_bluetooth_service_impl.cc:656: device_chooser_controller_.reset(); On 2016/06/10 18:10:07, ortuno wrote: > On 2016/06/10 ...
4 years, 6 months ago (2016-06-10 18:47:19 UTC) #14
ortuno
https://codereview.chromium.org/2030973002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc File content/browser/bluetooth/web_bluetooth_service_impl.cc (right): https://codereview.chromium.org/2030973002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc#newcode656 content/browser/bluetooth/web_bluetooth_service_impl.cc:656: device_chooser_controller_.reset(); On 2016/06/10 at 18:47:18, Jeffrey Yasskin wrote: > ...
4 years, 6 months ago (2016-06-10 19:32:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030973002/80001
4 years, 6 months ago (2016-06-13 17:55:12 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/238231)
4 years, 6 months ago (2016-06-13 22:43:26 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030973002/80001
4 years, 6 months ago (2016-06-14 14:23:36 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/238833)
4 years, 6 months ago (2016-06-14 17:51:14 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030973002/80001
4 years, 6 months ago (2016-06-14 18:01:31 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/238992)
4 years, 6 months ago (2016-06-14 22:32:59 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030973002/80001
4 years, 6 months ago (2016-06-15 02:16:14 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-15 04:20:12 UTC) #31
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-15 04:20:14 UTC) #32
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 04:22:48 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8eba1a9d135b69979dd20c1c8c49f4cfdb3ee6d7
Cr-Commit-Position: refs/heads/master@{#399836}

Powered by Google App Engine
This is Rietveld 408576698