|
Provide the DeviceManager service to the renderer directly, no app.
The Mojo app model forces us to create a new thread on which to run the
device manager. Inside Chrome this then means that we have to post tasks
to the UI thread in order to use the UsbService instance it is
implemented with. This patch removes the devices app from Chrome,
instead registering a factory function for DeviceManagers directly with
the RenderFrameHost. DeviceManagerImpl can then live on the UI thread
which greatly simplfies its implementation. Otherwise we would have to
implement similar thread hopping in DeviceImpl and that would be a lot
of unnecessary code.
Committed: https://crrev.com/869af1c5170c48b8987b7ce4e2c70c9b37f9beb7
Cr-Commit-Position: refs/heads/master@{#352222}
Total comments: 10
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+100 lines, -200 lines) |
Patch |
|
M |
chrome/browser/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/DEPS
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/chrome_content_browser_client.h
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chrome_content_browser_client.cc
|
View
|
1
2
3
|
5 chunks |
+18 lines, -17 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/frame_host/render_frame_host_impl.cc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/browser/content_browser_client.h
|
View
|
1
2
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_frame_impl.cc
|
View
|
1
2
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
content/renderer/usb/web_usb_client_impl.h
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/renderer/usb/web_usb_client_impl.cc
|
View
|
|
4 chunks |
+7 lines, -10 lines |
0 comments
|
Download
|
|
M |
device/devices_app/devices_app.h
|
View
|
1
2
|
3 chunks |
+1 line, -7 lines |
0 comments
|
Download
|
|
M |
device/devices_app/devices_app.cc
|
View
|
|
2 chunks |
+5 lines, -12 lines |
0 comments
|
Download
|
|
M |
device/devices_app/public/cpp/devices_app_factory.h
|
View
|
|
2 chunks |
+1 line, -11 lines |
0 comments
|
Download
|
|
M |
device/devices_app/public/cpp/devices_app_factory.cc
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
device/devices_app/usb/device_manager_impl.h
|
View
|
1
2
|
7 chunks |
+16 lines, -16 lines |
0 comments
|
Download
|
|
M |
device/devices_app/usb/device_manager_impl.cc
|
View
|
1
2
|
6 chunks |
+29 lines, -110 lines |
0 comments
|
Download
|
|
M |
device/devices_app/usb/device_manager_impl_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 26 (10 generated)
|