|
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}
Total comments: 6
|
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
|
Total messages: 44 (18 generated)
|