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

Issue 2059543002: bluetooth: Move FactoryWrapper to device and expose a function for testing in chooser controller (Closed)

Created:
4 years, 6 months ago by ortuno
Modified:
4 years, 5 months ago
Reviewers:
scheib, ncarter (slow), jam
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, nasko+codewatch_chromium.org, ortuno+watch_chromium.org, Peter Beverloo, 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: Move FactoryWrapper to device and expose a function for testing in chooser controller Moving BluetoothAdapterFactoryWrapper avoids the need to access a member from RenderProcessHostImpl, which avoids casting from RenderProcessHost to RenderProcessHostImpl. The scan duration is a web bluetooth concept and therefore should not be part of the FactoryWrapper in device. To that extent we expose a static function in BluetoothDeviceChooserController that allows tests to set a scan duration of 0. BUG=621528 Committed: https://crrev.com/189e95876f948145773b4a1151716eadb58ca1a0 Cr-Commit-Position: refs/heads/master@{#404472}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Fixes #

Patch Set 4 : Moar clean up #

Patch Set 5 : Fix typo #

Total comments: 6

Patch Set 6 : Fix merge conflict #

Patch Set 7 : Address scheib's comments #

Patch Set 8 : Directly set the scan duration rather than using the client interface #

Patch Set 9 : Remove code from client interface #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -388 lines) Patch
D content/browser/bluetooth/bluetooth_adapter_factory_wrapper.h View 1 chunk +0 lines, -99 lines 0 comments Download
D content/browser/bluetooth/bluetooth_adapter_factory_wrapper.cc View 1 chunk +0 lines, -146 lines 0 comments Download
M content/browser/bluetooth/bluetooth_device_chooser_controller.h View 1 2 3 4 5 6 7 5 chunks +10 lines, -4 lines 0 comments Download
M content/browser/bluetooth/bluetooth_device_chooser_controller.cc View 1 2 3 4 5 6 7 4 chunks +13 lines, -3 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.h View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.cc View 1 2 3 4 5 6 chunks +8 lines, -15 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 3 chunks +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M content/public/test/layouttest_support.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -9 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/test/layouttest_support.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -10 lines 0 comments Download
M device/bluetooth/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A + device/bluetooth/bluetooth_adapter_factory_wrapper.h View 1 2 3 4 5 6 4 chunks +30 lines, -33 lines 0 comments Download
A + device/bluetooth/bluetooth_adapter_factory_wrapper.cc View 1 2 3 4 5 6 5 chunks +49 lines, -47 lines 0 comments Download

Messages

Total messages: 44 (18 generated)
ortuno
jyasskin: PTAL. I know we talked about merging BluetoothAdapterFactoryWrapper with BluetoothAdapterFactory, but BluetoothAdapterFactoryWrapper is quite ...
4 years, 6 months ago (2016-06-10 16:58:33 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2059543002/60001
4 years, 6 months ago (2016-06-10 16:58:50 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/79876) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 6 months ago (2016-06-10 17:11:11 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2059543002/80001
4 years, 6 months ago (2016-06-10 17:18:15 UTC) #9
commit-bot: I haz the power
Dry run: 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/237342)
4 years, 6 months ago (2016-06-10 22:23:25 UTC) #11
ortuno
scheib: PTAL since jyasskin is OOO
4 years, 6 months ago (2016-06-20 16:10:28 UTC) #14
scheib
LGTM with some suggestions: https://codereview.chromium.org/2059543002/diff/80001/content/browser/bluetooth/bluetooth_device_chooser_controller.h File content/browser/bluetooth/bluetooth_device_chooser_controller.h (right): https://codereview.chromium.org/2059543002/diff/80001/content/browser/bluetooth/bluetooth_device_chooser_controller.h#newcode44 content/browser/bluetooth/bluetooth_device_chooser_controller.h:44: // |scan_duration| is how long ...
4 years, 6 months ago (2016-06-22 03:44:22 UTC) #15
ortuno
Thanks! https://codereview.chromium.org/2059543002/diff/80001/content/browser/bluetooth/bluetooth_device_chooser_controller.h File content/browser/bluetooth/bluetooth_device_chooser_controller.h (right): https://codereview.chromium.org/2059543002/diff/80001/content/browser/bluetooth/bluetooth_device_chooser_controller.h#newcode44 content/browser/bluetooth/bluetooth_device_chooser_controller.h:44: // |scan_duration| is how long will a discovery ...
4 years, 6 months ago (2016-06-23 21:55:00 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/2059543002/120001
4 years, 6 months ago (2016-06-23 21:55:28 UTC) #18
ortuno
jam: PTAL at chrome/, content/browser/renderer_host/, content/public/ and content/shell.
4 years, 6 months ago (2016-06-23 22:43:30 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/251591)
4 years, 6 months ago (2016-06-24 00:53:20 UTC) #22
jam
Do we have any use cases for letting the scan frequency be set by the ...
4 years, 5 months ago (2016-06-27 16:21:08 UTC) #23
ortuno
On 2016/06/27 at 16:21:08, jam wrote: > Do we have any use cases for letting ...
4 years, 5 months ago (2016-06-27 16:33:59 UTC) #24
ortuno
On 2016/06/27 at 16:33:59, ortuno wrote: > On 2016/06/27 at 16:21:08, jam wrote: > > ...
4 years, 5 months ago (2016-06-27 17:42:16 UTC) #25
jam
On 2016/06/27 17:42:16, ortuno wrote: > On 2016/06/27 at 16:33:59, ortuno wrote: > > On ...
4 years, 5 months ago (2016-06-27 19:42:19 UTC) #26
ortuno
On 2016/06/27 at 19:42:19, jam wrote: > On 2016/06/27 17:42:16, ortuno wrote: > > On ...
4 years, 5 months ago (2016-06-27 19:59:30 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2059543002/160001
4 years, 5 months ago (2016-07-07 20:33:20 UTC) #31
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gyp_rel on master.tryserver.chromium.mac (JOB_TIMED_OUT, no build URL)
4 years, 5 months ago (2016-07-07 22:35:09 UTC) #33
ortuno
scheib: PTAL again. This latest patch no longer uses the client interface. BluetoothDeviceChooserController exposes a ...
4 years, 5 months ago (2016-07-07 23:14:50 UTC) #34
scheib
LGTM
4 years, 5 months ago (2016-07-08 00:46:03 UTC) #35
ortuno
nick: Since jam is OOO could you take a look at content/browser/renderer_host/, content/test/, content/public, and ...
4 years, 5 months ago (2016-07-08 16:09:04 UTC) #37
ncarter (slow)
lgtm. This looks like better layering.
4 years, 5 months ago (2016-07-08 18:10:36 UTC) #38
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/2059543002/160001
4 years, 5 months ago (2016-07-08 18:58:48 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 5 months ago (2016-07-08 20:07:00 UTC) #41
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-08 20:07:10 UTC) #42
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 20:08:58 UTC) #44
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/189e95876f948145773b4a1151716eadb58ca1a0
Cr-Commit-Position: refs/heads/master@{#404472}

Powered by Google App Engine
This is Rietveld 408576698