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

Issue 1265833005: Get all the UsbConfigDescriptor for the device configuration (Closed)

Created:
5 years, 4 months ago by juncai
Modified:
5 years, 4 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, yurys, pfeldman, devtools-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add function to get all the UsbConfigDescriptor for the device configuration This patch added a function to get all the UsbConfigDescriptor for the device configuration. And changed GetConfiguration function name to GetActiveConfiguration. Committed: https://crrev.com/e4d532aa1982271f5b8a65345a92aa6434758826 Cr-Commit-Position: refs/heads/master@{#341925}

Patch Set 1 : add function to get all the UsbConfigDescriptor for the device configuration #

Patch Set 2 : updated device unittests code #

Patch Set 3 : updated chromeos related code #

Patch Set 4 : updated chromeos related code again #

Total comments: 6

Patch Set 5 : changed GetConfiguration function name to GetActiveConfiguration, etc. #

Patch Set 6 : updated code to continue instead of return if error happens when getting config descriptor #

Total comments: 14

Patch Set 7 : renamed some functions #

Total comments: 2

Patch Set 8 : changed for loop style #

Patch Set 9 : use vector's reserve function #

Patch Set 10 : use const auto #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -86 lines) Patch
M chrome/browser/chromeos/printer_detector/printer_detector_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/devtools/device/usb/android_usb_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/devtools/device/usb/android_usb_device.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M device/devices_app/usb/device_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 2 comments Download
M device/devices_app/usb/device_impl_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M device/devices_app/usb/device_manager_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M device/devices_app/usb/device_manager_impl_unittest.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M device/usb/mock_usb_device.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M device/usb/usb_device.h View 1 2 3 4 5 6 3 chunks +12 lines, -2 lines 0 comments Download
M device/usb/usb_device_filter.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M device/usb/usb_device_filter_unittest.cc View 1 2 3 4 6 chunks +6 lines, -6 lines 0 comments Download
M device/usb/usb_device_handle_impl.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M device/usb/usb_device_impl.h View 1 2 3 4 5 6 3 chunks +7 lines, -4 lines 0 comments Download
M device/usb/usb_device_impl.cc View 1 2 3 4 5 6 7 8 9 5 chunks +91 lines, -53 lines 0 comments Download
M extensions/browser/api/usb/usb_api.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/browser/api/usb/usb_apitest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (8 generated)
juncai
achuith@chromium.org: Please review changes in chrome/browser/chromeos/printer_detector/printer_detector_unittest.cc dgozman@chromium.org: Please review changes in chrome/browser/devtools/device/usb/android_usb_browsertest.cc chrome/browser/devtools/device/usb/android_usb_device.cc reillyg@chromium.org: Please ...
5 years, 4 months ago (2015-07-31 23:07:39 UTC) #2
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1265833005/diff/60001/device/usb/usb_device.h File device/usb/usb_device.h (right): https://codereview.chromium.org/1265833005/diff/60001/device/usb/usb_device.h#newcode57 device/usb/usb_device.h:57: virtual const UsbConfigDescriptor* GetCurrentConfiguration() = 0; GetCurrentConfiguration -> GetActiveConfiguration ...
5 years, 4 months ago (2015-07-31 23:36:13 UTC) #3
dgozman
chrome/browser/devtools rubberstamp lgtm Note that you may just TBR trivial API renames as long as ...
5 years, 4 months ago (2015-08-03 07:55:55 UTC) #4
juncai
Please review the change. https://codereview.chromium.org/1265833005/diff/60001/device/usb/usb_device.h File device/usb/usb_device.h (right): https://codereview.chromium.org/1265833005/diff/60001/device/usb/usb_device.h#newcode57 device/usb/usb_device.h:57: virtual const UsbConfigDescriptor* GetCurrentConfiguration() = ...
5 years, 4 months ago (2015-08-03 17:46:01 UTC) #5
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1265833005/diff/100001/device/usb/usb_device.h File device/usb/usb_device.h (right): https://codereview.chromium.org/1265833005/diff/100001/device/usb/usb_device.h#newcode59 device/usb/usb_device.h:59: // Gets all the UsbConfigDescriptor for the device configuration. ...
5 years, 4 months ago (2015-08-03 18:04:04 UTC) #6
juncai
Please review the change. https://codereview.chromium.org/1265833005/diff/100001/device/usb/usb_device.h File device/usb/usb_device.h (right): https://codereview.chromium.org/1265833005/diff/100001/device/usb/usb_device.h#newcode59 device/usb/usb_device.h:59: // Gets all the UsbConfigDescriptor ...
5 years, 4 months ago (2015-08-03 21:56:25 UTC) #7
Reilly Grant (use Gerrit)
lgtm https://codereview.chromium.org/1265833005/diff/120001/device/usb/usb_device_impl.cc File device/usb/usb_device_impl.cc (right): https://codereview.chromium.org/1265833005/diff/120001/device/usb/usb_device_impl.cc#newcode272 device/usb/usb_device_impl.cc:272: size_t num_configurations = configurations_.size(); There's no reason not ...
5 years, 4 months ago (2015-08-03 22:06:55 UTC) #8
juncai
https://codereview.chromium.org/1265833005/diff/120001/device/usb/usb_device_impl.cc File device/usb/usb_device_impl.cc (right): https://codereview.chromium.org/1265833005/diff/120001/device/usb/usb_device_impl.cc#newcode272 device/usb/usb_device_impl.cc:272: size_t num_configurations = configurations_.size(); On 2015/08/03 22:06:55, reillyg wrote: ...
5 years, 4 months ago (2015-08-04 04:19:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1265833005/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1265833005/180001
5 years, 4 months ago (2015-08-04 04:19:20 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/84583)
5 years, 4 months ago (2015-08-04 04:27:37 UTC) #14
juncai
achuithb@, ping?
5 years, 4 months ago (2015-08-04 04:43:01 UTC) #15
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1265833005/diff/180001/device/devices_app/usb/device_impl.cc File device/devices_app/usb/device_impl.cc (left): https://codereview.chromium.org/1265833005/diff/180001/device/devices_app/usb/device_impl.cc#oldcode127 device/devices_app/usb/device_impl.cc:127: info->configurations = mojo::Array<ConfigurationInfoPtr>::New(0); Please update this method to fill ...
5 years, 4 months ago (2015-08-04 23:47:08 UTC) #16
juncai
stevenjb@chromium.org: Please review changes in chrome/browser/chromeos/printer_detector/printer_detector_unittest.cc
5 years, 4 months ago (2015-08-05 04:23:16 UTC) #18
stevenjb
c/b/chromeos lgtm
5 years, 4 months ago (2015-08-05 15:11:48 UTC) #21
juncai
On 2015/08/04 23:47:08, reillyg wrote: > https://codereview.chromium.org/1265833005/diff/180001/device/devices_app/usb/device_impl.cc > File device/devices_app/usb/device_impl.cc (left): > > https://codereview.chromium.org/1265833005/diff/180001/device/devices_app/usb/device_impl.cc#oldcode127 > ...
5 years, 4 months ago (2015-08-05 15:36:23 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1265833005/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1265833005/180001
5 years, 4 months ago (2015-08-05 15:38:12 UTC) #24
juncai
https://codereview.chromium.org/1265833005/diff/180001/device/devices_app/usb/device_impl.cc File device/devices_app/usb/device_impl.cc (left): https://codereview.chromium.org/1265833005/diff/180001/device/devices_app/usb/device_impl.cc#oldcode127 device/devices_app/usb/device_impl.cc:127: info->configurations = mojo::Array<ConfigurationInfoPtr>::New(0); On 2015/08/04 23:47:08, reillyg wrote: > ...
5 years, 4 months ago (2015-08-05 15:42:17 UTC) #25
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 4 months ago (2015-08-05 18:05:44 UTC) #26
commit-bot: I haz the power
5 years, 4 months ago (2015-08-05 18:06:33 UTC) #27
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/e4d532aa1982271f5b8a65345a92aa6434758826
Cr-Commit-Position: refs/heads/master@{#341925}

Powered by Google App Engine
This is Rietveld 408576698