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

Issue 1353053002: Handle RESCAN events from the Bluetooth chooser by starting or extending a discovery session. (Closed)

Created:
5 years, 3 months ago by Jeffrey Yasskin
Modified:
5 years, 3 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@lkcr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle RESCAN events from the Bluetooth chooser by starting or extending a discovery session. I also added interfaces to support tests that this works, documented in https://github.com/WebBluetoothCG/web-bluetooth/pull/165. BUG=533185 TBR=mkwst@chromium.org Committed: https://crrev.com/1e9f0c90c10d405dacfe7ab9b5ae4c1c05227a98 Cr-Commit-Position: refs/heads/master@{#350586}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rename StartDiscovery to StartDeviceDiscovery. #

Total comments: 2

Patch Set 3 : Don't mock {Add,Remove}Observer. #

Patch Set 4 : Remove uses of mocked {Add,Remove}Observer. #

Patch Set 5 : Revert removal of mock {Add,Remove}Observer. #

Total comments: 2

Patch Set 6 : Merge in the Blink-side tests from https://codereview.chromium.org/1348953004 #

Patch Set 7 : Comment the AddDevice() helper function in the test adapters. #

Patch Set 8 : Sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -31 lines) Patch
M content/browser/bluetooth/bluetooth_dispatcher_host.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 5 chunks +40 lines, -31 lines 0 comments Download
M content/shell/browser/blink_test_controller.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 chunk +9 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 3 4 5 6 3 chunks +40 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_adapter.h View 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_adapter.cc View 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice.html View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (23 generated)
Jeffrey Yasskin
5 years, 3 months ago (2015-09-18 01:04:41 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/1
5 years, 3 months ago (2015-09-18 01:51:57 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-18 02:50:16 UTC) #6
ortuno
lgtm https://codereview.chromium.org/1353053002/diff/1/content/browser/bluetooth/bluetooth_dispatcher_host.h File content/browser/bluetooth/bluetooth_dispatcher_host.h (right): https://codereview.chromium.org/1353053002/diff/1/content/browser/bluetooth/bluetooth_dispatcher_host.h#newcode64 content/browser/bluetooth/bluetooth_dispatcher_host.h:64: void StartDiscovery(RequestDeviceSession* session, int chooser_id); Should this be ...
5 years, 3 months ago (2015-09-18 19:31:56 UTC) #7
Jeffrey Yasskin
Mike, please check content/shell/browser/blink_test_controller.cc. Arman, please check the extra observer support in MockBluetoothAdapter. https://codereview.chromium.org/1353053002/diff/1/content/browser/bluetooth/bluetooth_dispatcher_host.h File ...
5 years, 3 months ago (2015-09-18 21:29:50 UTC) #9
armansito
https://codereview.chromium.org/1353053002/diff/20001/device/bluetooth/test/mock_bluetooth_adapter.cc File device/bluetooth/test/mock_bluetooth_adapter.cc (right): https://codereview.chromium.org/1353053002/diff/20001/device/bluetooth/test/mock_bluetooth_adapter.cc#newcode25 device/bluetooth/test/mock_bluetooth_adapter.cc:25: })); Do you ever need MockBluetoothAdapter::AddObserver|RemoveObserver to be mocked ...
5 years, 3 months ago (2015-09-18 23:33:50 UTC) #10
Jeffrey Yasskin
https://codereview.chromium.org/1353053002/diff/20001/device/bluetooth/test/mock_bluetooth_adapter.cc File device/bluetooth/test/mock_bluetooth_adapter.cc (right): https://codereview.chromium.org/1353053002/diff/20001/device/bluetooth/test/mock_bluetooth_adapter.cc#newcode25 device/bluetooth/test/mock_bluetooth_adapter.cc:25: })); On 2015/09/18 23:33:49, armansito wrote: > Do you ...
5 years, 3 months ago (2015-09-19 00:16:47 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/40001
5 years, 3 months ago (2015-09-19 00:16:47 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/83981) mac_chromium_rel_ng on ...
5 years, 3 months ago (2015-09-19 00:26:11 UTC) #15
armansito
On 2015/09/19 00:26:11, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
5 years, 3 months ago (2015-09-19 02:29:13 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/60001
5 years, 3 months ago (2015-09-23 00:56:34 UTC) #18
Jeffrey Yasskin
On 2015/09/19 02:29:13, armansito wrote: > On 2015/09/19 00:26:11, commit-bot: I haz the power wrote: ...
5 years, 3 months ago (2015-09-23 01:00:01 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/44226)
5 years, 3 months ago (2015-09-23 01:31:39 UTC) #22
armansito
On 2015/09/23 01:00:01, Jeffrey Yasskin wrote: > On 2015/09/19 02:29:13, armansito wrote: > > On ...
5 years, 3 months ago (2015-09-23 02:18:06 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/80001
5 years, 3 months ago (2015-09-23 02:25:42 UTC) #26
Jeffrey Yasskin
Thanks. Mike and Vince, I still need your LGTMs for content/shell and content/shell/layout_tests/*bluetooth.
5 years, 3 months ago (2015-09-23 02:26:16 UTC) #27
scheib
LGTM, comment request: https://codereview.chromium.org/1353053002/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc (right): https://codereview.chromium.org/1353053002/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc#newcode257 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:257: static void AddDevice(scoped_refptr<NiceMockBluetoothAdapter> adapter, This is ...
5 years, 3 months ago (2015-09-23 03:35:00 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-23 04:06:58 UTC) #30
Jeffrey Yasskin
Hey Jochen, Mike's marked "slow" and I'm going on vacation Saturday, so can you look ...
5 years, 3 months ago (2015-09-23 19:32:05 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/120001
5 years, 3 months ago (2015-09-23 19:32:29 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/101429) mac_chromium_rel_ng on ...
5 years, 3 months ago (2015-09-23 19:33:08 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/120001
5 years, 3 months ago (2015-09-23 21:09:11 UTC) #38
commit-bot: I haz the power
Dry run: 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/117082)
5 years, 3 months ago (2015-09-23 21:09:58 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/140001
5 years, 3 months ago (2015-09-23 21:27:59 UTC) #42
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/35918) linux_chromium_gn_chromeos_rel on ...
5 years, 3 months ago (2015-09-23 22:14:51 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/140001
5 years, 3 months ago (2015-09-24 16:37:22 UTC) #47
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/103409)
5 years, 3 months ago (2015-09-24 16:48:34 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/140001
5 years, 3 months ago (2015-09-24 16:50:06 UTC) #51
Mike West
lgtm
5 years, 3 months ago (2015-09-24 16:53:59 UTC) #52
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 3 months ago (2015-09-24 16:58:38 UTC) #53
commit-bot: I haz the power
5 years, 3 months ago (2015-09-24 16:59:42 UTC) #54
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/1e9f0c90c10d405dacfe7ab9b5ae4c1c05227a98
Cr-Commit-Position: refs/heads/master@{#350586}

Powered by Google App Engine
This is Rietveld 408576698