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

Issue 2204713006: Add chrome://usb-internals page for adding and removing test devices. (Closed)

Created:
4 years, 4 months ago by Reilly Grant (use Gerrit)
Modified:
4 years, 4 months ago
Reviewers:
Robert Sesek, jam, dpapad
CC:
Aaron Boodman, abarth-chromium, arv+watch_chromium.org, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), Dan Beam, Finnur, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add chrome://usb-internals page for adding and removing test devices. This patch adds a new WebUI page, chrome://usb-internals with controls for simulating the connection and disconnection of virtual WebUSB devices. This will be useful for doing UI testing without the need for real hardware. This page will be expanded in the future to add other features useful for debugging WebUSB such as viewing device information as it has been parsed by Chrome and overriding descriptors during development. BUG=625019 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/3903a69e08972bf282615d725b918109e5cb7a44 Cr-Commit-Position: refs/heads/master@{#411091}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed some of dpapad@'s comments. #

Total comments: 6

Patch Set 3 : Addresses dpapad@'s nits. #

Total comments: 9

Patch Set 4 : Address rsesek@'s comments. #

Patch Set 5 : Use typemaped types in the TestDeviceInfo struct. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+509 lines, -1 line) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/resources/usb_internals/usb_internals.css View 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/resources/usb_internals/usb_internals.html View 1 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/browser/resources/usb_internals/usb_internals.js View 1 2 3 4 1 chunk +97 lines, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A + chrome/browser/ui/webui/usb_internals/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/browser/ui/webui/usb_internals/OWNERS View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/browser/ui/webui/usb_internals/usb_internals.mojom View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/usb_internals/usb_internals_page_handler.h View 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/usb_internals/usb_internals_page_handler.cc View 1 2 3 4 1 chunk +127 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/usb_internals/usb_internals_ui.h View 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/usb_internals/usb_internals_ui.cc View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M device/usb/usb_service.h View 3 chunks +8 lines, -0 lines 0 comments Download
M device/usb/usb_service.cc View 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (25 generated)
Reilly Grant (use Gerrit)
Please take a look.
4 years, 4 months ago (2016-08-04 01:33:11 UTC) #3
Dan Beam
I think dpapad@ might be a better reviewer of mojo-based webui pages
4 years, 4 months ago (2016-08-04 02:54:33 UTC) #7
dpapad
https://codereview.chromium.org/2204713006/diff/1/chrome/browser/resources/usb_internals/usb_internals.html File chrome/browser/resources/usb_internals/usb_internals.html (right): https://codereview.chromium.org/2204713006/diff/1/chrome/browser/resources/usb_internals/usb_internals.html#newcode54 chrome/browser/resources/usb_internals/usb_internals.html:54: <button type="submit">Add</button> <span id="add-test-device-result"> This <span> is missing closing ...
4 years, 4 months ago (2016-08-04 20:55:35 UTC) #10
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2204713006/diff/1/chrome/browser/resources/usb_internals/usb_internals.html File chrome/browser/resources/usb_internals/usb_internals.html (right): https://codereview.chromium.org/2204713006/diff/1/chrome/browser/resources/usb_internals/usb_internals.html#newcode54 chrome/browser/resources/usb_internals/usb_internals.html:54: <button type="submit">Add</button> <span id="add-test-device-result"> On 2016/08/04 at 20:55:34, dpapad ...
4 years, 4 months ago (2016-08-05 01:30:55 UTC) #11
dpapad
LGTM for chrome/browser/*, with some nits. https://codereview.chromium.org/2204713006/diff/20001/chrome/browser/resources/usb_internals/usb_internals.js File chrome/browser/resources/usb_internals/usb_internals.js (right): https://codereview.chromium.org/2204713006/diff/20001/chrome/browser/resources/usb_internals/usb_internals.js#newcode17 chrome/browser/resources/usb_internals/usb_internals.js:17: while (tableBody.firstChild) Nit: ...
4 years, 4 months ago (2016-08-05 17:25:11 UTC) #16
Reilly Grant (use Gerrit)
jam@, please take a look at the chrome/browser and chrome/browser/ui BUILD.gn changes. rsesek@, please do ...
4 years, 4 months ago (2016-08-05 18:08:35 UTC) #18
jam
On 2016/08/05 18:08:35, Reilly Grant wrote: > jam@, please take a look at the chrome/browser ...
4 years, 4 months ago (2016-08-05 19:55:35 UTC) #23
Robert Sesek
https://codereview.chromium.org/2204713006/diff/40001/chrome/browser/ui/webui/usb_internals/usb_internals.mojom File chrome/browser/ui/webui/usb_internals/usb_internals.mojom (right): https://codereview.chromium.org/2204713006/diff/40001/chrome/browser/ui/webui/usb_internals/usb_internals.mojom#newcode11 chrome/browser/ui/webui/usb_internals/usb_internals.mojom:11: string landing_page; Should this be a GURL? https://codereview.chromium.org/2204713006/diff/40001/chrome/browser/ui/webui/usb_internals/usb_internals.mojom#newcode12 chrome/browser/ui/webui/usb_internals/usb_internals.mojom:12: ...
4 years, 4 months ago (2016-08-08 19:11:36 UTC) #24
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2204713006/diff/40001/chrome/browser/ui/webui/usb_internals/usb_internals.mojom File chrome/browser/ui/webui/usb_internals/usb_internals.mojom (right): https://codereview.chromium.org/2204713006/diff/40001/chrome/browser/ui/webui/usb_internals/usb_internals.mojom#newcode11 chrome/browser/ui/webui/usb_internals/usb_internals.mojom:11: string landing_page; On 2016/08/08 at 19:11:35, Robert Sesek wrote: ...
4 years, 4 months ago (2016-08-08 20:48:25 UTC) #25
Robert Sesek
https://codereview.chromium.org/2204713006/diff/40001/chrome/browser/ui/webui/usb_internals/usb_internals.mojom File chrome/browser/ui/webui/usb_internals/usb_internals.mojom (right): https://codereview.chromium.org/2204713006/diff/40001/chrome/browser/ui/webui/usb_internals/usb_internals.mojom#newcode11 chrome/browser/ui/webui/usb_internals/usb_internals.mojom:11: string landing_page; On 2016/08/08 20:48:24, Reilly Grant wrote: > ...
4 years, 4 months ago (2016-08-09 20:42:38 UTC) #27
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2204713006/diff/40001/chrome/browser/ui/webui/usb_internals/usb_internals.mojom File chrome/browser/ui/webui/usb_internals/usb_internals.mojom (right): https://codereview.chromium.org/2204713006/diff/40001/chrome/browser/ui/webui/usb_internals/usb_internals.mojom#newcode11 chrome/browser/ui/webui/usb_internals/usb_internals.mojom:11: string landing_page; On 2016/08/09 at 20:42:37, Robert Sesek wrote: ...
4 years, 4 months ago (2016-08-10 01:02:46 UTC) #28
Robert Sesek
lgtm
4 years, 4 months ago (2016-08-10 17:31:07 UTC) #33
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/2204713006/80001
4 years, 4 months ago (2016-08-10 17:41:21 UTC) #36
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-10 18:34:33 UTC) #38
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 18:36:37 UTC) #40
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3903a69e08972bf282615d725b918109e5cb7a44
Cr-Commit-Position: refs/heads/master@{#411091}

Powered by Google App Engine
This is Rietveld 408576698