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

Issue 1165223004: Introduce the devices Mojo app (Closed)

Created:
5 years, 6 months ago by Ken Rockot(use gerrit already)
Modified:
5 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce the devices Mojo app It's a small Mojo app that currently only hosts USB device services. This CL adds the app along with an apptest suite (run manually with mojo_runner mojo:devices_apptests). The app is hooked up to Chrome to run in the browser process, though there are currently no production code paths which cause the app to launch. BUG=498557 Committed: https://crrev.com/ed800dc138edfa261aa766281b96f736ff9824f6 Cr-Commit-Position: refs/heads/master@{#333899}

Patch Set 1 : #

Total comments: 7

Patch Set 2 : oops #

Patch Set 3 : fix missing gyp dependency #

Patch Set 4 : fix moar missing build deps #

Patch Set 5 : move some deps to public_deps to satisfy new GN check ruels #

Patch Set 6 : move mojo USB sources into devices_app to keep mojo dependencies separated from device/usb #

Unified diffs Side-by-side diffs Delta from patch set Stats (+687 lines, -2516 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 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/chrome_device_client.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chrome_device_client.cc View 2 chunks +0 lines, -30 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M device/BUILD.gn View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M device/core/device_client.h View 1 chunk +0 lines, -5 lines 0 comments Download
M device/core/device_client.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M device/device_tests.gyp View 1 2 3 4 5 4 chunks +4 lines, -2 lines 0 comments Download
A device/devices_app/BUILD.gn View 1 2 3 4 5 1 chunk +71 lines, -0 lines 0 comments Download
A device/devices_app/DEPS View 1 chunk +4 lines, -0 lines 0 comments Download
A + device/devices_app/OWNERS View 1 chunk +0 lines, -1 line 0 comments Download
A device/devices_app/devices_app.h View 1 chunk +81 lines, -0 lines 0 comments Download
A device/devices_app/devices_app.cc View 1 2 3 4 5 1 chunk +175 lines, -0 lines 0 comments Download
A device/devices_app/devices_app.gyp View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
A device/devices_app/devices_apptest.cc View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download
A + device/devices_app/main.cc View 1 chunk +3 lines, -2 lines 0 comments Download
A + device/devices_app/usb/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A + device/devices_app/usb/device_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A + device/devices_app/usb/device_impl.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
A + device/devices_app/usb/device_impl_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A + device/devices_app/usb/device_manager_impl.h View 1 2 3 4 5 3 chunks +20 lines, -12 lines 0 comments Download
A device/devices_app/usb/device_manager_impl.cc View 1 2 3 4 5 1 chunk +159 lines, -0 lines 0 comments Download
A + device/devices_app/usb/device_manager_impl_unittest.cc View 1 2 3 4 5 5 chunks +16 lines, -39 lines 0 comments Download
A + device/devices_app/usb/public/cpp/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
A + device/devices_app/usb/public/cpp/device_manager_delegate.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
A + device/devices_app/usb/public/interfaces/BUILD.gn View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A + device/devices_app/usb/public/interfaces/device.mojom View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A + device/devices_app/usb/public/interfaces/device_manager.mojom View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A + device/devices_app/usb/type_converters.h View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
A + device/devices_app/usb/type_converters.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M device/usb/BUILD.gn View 1 2 3 4 5 2 chunks +0 lines, -15 lines 0 comments Download
D device/usb/device_impl.h View 1 2 3 4 5 1 chunk +0 lines, -140 lines 0 comments Download
D device/usb/device_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -347 lines 0 comments Download
D device/usb/device_impl_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -707 lines 0 comments Download
M device/usb/device_manager_impl.h View 1 2 3 4 5 1 chunk +0 lines, -66 lines 0 comments Download
M device/usb/device_manager_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -113 lines 0 comments Download
M device/usb/device_manager_impl_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -256 lines 0 comments Download
M device/usb/public/cpp/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -16 lines 0 comments Download
D device/usb/public/cpp/device_manager_delegate.h View 1 2 3 4 5 1 chunk +0 lines, -27 lines 0 comments Download
D device/usb/public/cpp/device_manager_factory.h View 1 chunk +0 lines, -34 lines 0 comments Download
D device/usb/public/interfaces/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -12 lines 0 comments Download
D device/usb/public/interfaces/device.mojom View 1 2 3 4 5 1 chunk +0 lines, -263 lines 0 comments Download
D device/usb/public/interfaces/device_manager.mojom View 1 2 3 4 5 1 chunk +0 lines, -48 lines 0 comments Download
D device/usb/type_converters.h View 1 2 3 4 5 1 chunk +0 lines, -104 lines 0 comments Download
D device/usb/type_converters.cc View 1 2 3 4 5 1 chunk +0 lines, -220 lines 0 comments Download
M device/usb/usb.gyp View 1 2 3 4 5 2 chunks +0 lines, -32 lines 0 comments Download
M device/usb/usb_context.cc View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/application/public/cpp/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
Ken Rockot(use gerrit already)
Reilly, please take a look at device/* and chrome_device_client.* Changes to existing code are to ...
5 years, 6 months ago (2015-06-10 00:07:24 UTC) #6
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1165223004/diff/80001/device/devices_app/devices_app.cc File device/devices_app/devices_app.cc (right): https://codereview.chromium.org/1165223004/diff/80001/device/devices_app/devices_app.cc#newcode46 device/devices_app/devices_app.cc:46: // does presume not catch all common local host ...
5 years, 6 months ago (2015-06-10 20:02:47 UTC) #7
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1165223004/diff/80001/device/devices_app/devices_app.cc File device/devices_app/devices_app.cc (right): https://codereview.chromium.org/1165223004/diff/80001/device/devices_app/devices_app.cc#newcode46 device/devices_app/devices_app.cc:46: // does presume not catch all common local host ...
5 years, 6 months ago (2015-06-10 20:15:51 UTC) #8
Reilly Grant (use Gerrit)
lgtm https://codereview.chromium.org/1165223004/diff/80001/device/usb/device_manager_impl.cc File device/usb/device_manager_impl.cc (right): https://codereview.chromium.org/1165223004/diff/80001/device/usb/device_manager_impl.cc#newcode62 device/usb/device_manager_impl.cc:62: OPEN_DEVICE_ERROR_ACCESS_DENIED)); On 2015/06/10 20:15:51, Ken Rockot wrote: > ...
5 years, 6 months ago (2015-06-10 21:33:17 UTC) #9
Ken Rockot(use gerrit already)
sky could you please take a look at: chrome/browser/BUILD.gn chrome/browser/DEPS chrome/browser/chrome_content_browser_client.cc chrome/browser/chrome_content_browser_client.h Thanks!
5 years, 6 months ago (2015-06-10 23:09:14 UTC) #11
sky
LGTM
5 years, 6 months ago (2015-06-10 23:36:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1165223004/160001
5 years, 6 months ago (2015-06-11 05:16:16 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:160001)
5 years, 6 months ago (2015-06-11 05:54:04 UTC) #16
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/ed800dc138edfa261aa766281b96f736ff9824f6 Cr-Commit-Position: refs/heads/master@{#333899}
5 years, 6 months ago (2015-06-11 05:55:07 UTC) #17
kjellander_chromium
5 years, 6 months ago (2015-06-11 13:40:41 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:160001) has been created in
https://codereview.chromium.org/1176383002/ by kjellander@chromium.org.

The reason for reverting is: This broke the Win 8 GN (dbg) and Win x64 GN (dbg)
bots:

https://build.chromium.org/p/chromium.win/builders/Win8%20GN%20%28dbg%29/buil...
https://build.chromium.org/p/chromium.win/builders/Win%20x64%20GN%20%28dbg%29....

Powered by Google App Engine
This is Rietveld 408576698