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

Issue 463493006: Add chrome.usbPrivate API for use by USB device WEBUI. (Closed)

Created:
6 years, 4 months ago by Reilly Grant (use Gerrit)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add chrome.usbPrivate API for use by USB device WEBUI. This private API exposes more information about connected USB devices than the public chrome.usb API. It is designed for use by WEBUI components that wish to display information about connected to devices to the user such as the dialog box shown by the proposed chrome.usb.getUserSelectedDevices API. BUG=346953 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289530

Patch Set 1 #

Patch Set 2 : Add a gadget-based test for string descriptor caching. #

Total comments: 1

Patch Set 3 : Updated histograms.xml. #

Total comments: 4

Patch Set 4 : Rebased and addressed rockot's feedback. #

Total comments: 1

Patch Set 5 : Change "Google Inc." to "Test Manufacturer". #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -38 lines) Patch
M chrome/browser/devtools/device/usb/android_usb_browsertest.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M components/usb_service/usb_device_handle.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/usb_service/usb_device_handle_impl.h View 3 chunks +8 lines, -0 lines 0 comments Download
M components/usb_service/usb_device_handle_impl.cc View 1 2 3 2 chunks +118 lines, -35 lines 0 comments Download
M device/usb/usb_service_unittest.cc View 1 1 chunk +16 lines, -3 lines 0 comments Download
M extensions/browser/api/usb/usb_apitest.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A + extensions/browser/api/usb_private/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A extensions/browser/api/usb_private/usb_private_api.h View 1 chunk +49 lines, -0 lines 0 comments Download
A extensions/browser/api/usb_private/usb_private_api.cc View 1 chunk +172 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/api/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/_api_features.json View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/common/api/api.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A extensions/common/api/usb_private.idl View 1 chunk +55 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Reilly Grant (use Gerrit)
6 years, 4 months ago (2014-08-11 21:26:17 UTC) #1
Reilly Grant (use Gerrit)
Adding asvitkine@chromium.org to review changes to extension_function_histogram_value.h.
6 years, 4 months ago (2014-08-11 22:00:15 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/463493006/diff/20001/extensions/browser/extension_function_histogram_value.h File extensions/browser/extension_function_histogram_value.h (right): https://codereview.chromium.org/463493006/diff/20001/extensions/browser/extension_function_histogram_value.h#newcode925 extensions/browser/extension_function_histogram_value.h:925: USBPRIVATE_GETDEVICES, Please also update histograms.xml.
6 years, 4 months ago (2014-08-11 22:01:27 UTC) #3
Reilly Grant (use Gerrit)
6 years, 4 months ago (2014-08-11 22:10:37 UTC) #4
Ken Rockot(use gerrit already)
Nice. lgtm with a few small comments https://codereview.chromium.org/463493006/diff/40001/components/usb_service/usb_device_handle_impl.cc File components/usb_service/usb_device_handle_impl.cc (right): https://codereview.chromium.org/463493006/diff/40001/components/usb_service/usb_device_handle_impl.cc#newcode380 components/usb_service/usb_device_handle_impl.cc:380: uint16 languages[256]; ...
6 years, 4 months ago (2014-08-13 19:19:00 UTC) #5
Alexei Svitkine (slow)
histograms lgtm
6 years, 4 months ago (2014-08-13 19:32:23 UTC) #6
Reilly Grant (use Gerrit)
Rebased and addressed rockot's feedback. Added dgozman to review the update to android_usb_browsertest.cc. https://codereview.chromium.org/463493006/diff/40001/components/usb_service/usb_device_handle_impl.cc File ...
6 years, 4 months ago (2014-08-13 21:20:43 UTC) #7
dgozman
chrome/browser/devtools lgtm https://codereview.chromium.org/463493006/diff/60001/chrome/browser/devtools/device/usb/android_usb_browsertest.cc File chrome/browser/devtools/device/usb/android_usb_browsertest.cc (right): https://codereview.chromium.org/463493006/diff/60001/chrome/browser/devtools/device/usb/android_usb_browsertest.cc#newcode46 chrome/browser/devtools/device/usb/android_usb_browsertest.cc:46: const char kDeviceManufacturer[] = "Google Inc."; I'd ...
6 years, 4 months ago (2014-08-14 02:57:58 UTC) #8
Reilly Grant (use Gerrit)
The CQ bit was checked by reillyg@chromium.org
6 years, 4 months ago (2014-08-14 03:55:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reillyg@chromium.org/463493006/80001
6 years, 4 months ago (2014-08-14 04:01:51 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-14 10:02:21 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-08-14 12:09:58 UTC) #12
Message was sent while issue was closed.
Committed patchset #5 (80001) as 289530

Powered by Google App Engine
This is Rietveld 408576698