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

Issue 2615353002: Typemap device.usb.DeviceFilter to device::UsbDeviceFilter. (Closed)

Created:
3 years, 11 months ago by Reilly Grant (use Gerrit)
Modified:
3 years, 10 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), extensions-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Typemap device.usb.DeviceFilter to device::UsbDeviceFilter. This patch makes device::UsbDeviceFilter a struct using base::Optional for the previously manually optional fields and typemaps the Mojo device filter type to it in Chrome code. BUG=None Review-Url: https://codereview.chromium.org/2615353002 Cr-Commit-Position: refs/heads/master@{#444145} Committed: https://chromium.googlesource.com/chromium/src/+/b71b7d5967c31b07766cf0ad10be89a9e526ed4a

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Fix test after rebase. #

Patch Set 4 : Fix GCC build. #

Patch Set 5 : Fix the rest of the Android build. #

Patch Set 6 : Fix Android Clang build. #

Patch Set 7 : Rebased. #

Total comments: 8

Patch Set 8 : Addressed juncai@'s feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -179 lines) Patch
M chrome/browser/android/usb/web_usb_chooser_service_android.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/usb/web_usb_chooser_service_android.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/printer_detector/printer_detector.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/android/usb_chooser_dialog_android.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/android/usb_chooser_dialog_android.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/usb/usb_browsertest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/usb/usb_chooser_controller.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/usb/usb_chooser_controller.cc View 1 2 3 4 5 6 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/usb/usb_chooser_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/usb/web_usb_chooser_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/usb/web_usb_chooser_service.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M device/usb/mojo/device_manager_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M device/usb/mojo/device_manager_impl_unittest.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M device/usb/mojo/type_converters.cc View 1 2 3 4 5 6 1 chunk +0 lines, -18 lines 0 comments Download
M device/usb/public/interfaces/OWNERS View 1 chunk +3 lines, -0 lines 0 comments Download
A device/usb/public/interfaces/device_manager.typemap View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
A device/usb/public/interfaces/device_manager_struct_traits.h View 1 2 3 4 5 6 7 1 chunk +62 lines, -0 lines 0 comments Download
A device/usb/public/interfaces/device_manager_struct_traits.cc View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
A device/usb/public/interfaces/typemaps.gni View 1 chunk +5 lines, -0 lines 0 comments Download
M device/usb/usb_device_filter.h View 2 chunks +7 lines, -19 lines 0 comments Download
M device/usb/usb_device_filter.cc View 1 2 3 4 5 6 7 4 chunks +25 lines, -63 lines 0 comments Download
M device/usb/usb_device_filter_unittest.cc View 2 chunks +20 lines, -20 lines 0 comments Download
M extensions/browser/api/device_permissions_prompt.h View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/usb/usb_api.cc View 2 chunks +13 lines, -19 lines 0 comments Download
M extensions/common/api/printer_provider/usb_printer_manifest_data.h View 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/api/printer_provider/usb_printer_manifest_data.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -11 lines 0 comments Download
M mojo/public/tools/bindings/chromium_bindings_configuration.gni View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 56 (39 generated)
Reilly Grant (use Gerrit)
Rebased.
3 years, 11 months ago (2017-01-07 02:01:55 UTC) #5
Reilly Grant (use Gerrit)
Fix test after rebase.
3 years, 11 months ago (2017-01-07 02:31:27 UTC) #10
Reilly Grant (use Gerrit)
Fix GCC build.
3 years, 11 months ago (2017-01-09 22:37:02 UTC) #15
Reilly Grant (use Gerrit)
Fix the rest of the Android build.
3 years, 11 months ago (2017-01-09 23:43:12 UTC) #20
Reilly Grant (use Gerrit)
Fix Android Clang build.
3 years, 11 months ago (2017-01-10 01:59:44 UTC) #25
Reilly Grant (use Gerrit)
Rebased.
3 years, 11 months ago (2017-01-10 22:17:35 UTC) #30
Reilly Grant (use Gerrit)
juncai@, please do a general review. tedchoc@, please review */android/* stevenjb@, please review chrome/browser/chromeos dcheng@, ...
3 years, 11 months ago (2017-01-11 23:01:22 UTC) #37
stevenjb
c/b/chromeos RS lgtm
3 years, 11 months ago (2017-01-11 23:05:50 UTC) #38
juncai
LGTM with nits. https://codereview.chromium.org/2615353002/diff/120001/device/usb/public/interfaces/device_manager_struct_traits.h File device/usb/public/interfaces/device_manager_struct_traits.h (right): https://codereview.chromium.org/2615353002/diff/120001/device/usb/public/interfaces/device_manager_struct_traits.h#newcode57 device/usb/public/interfaces/device_manager_struct_traits.h:57: device::UsbDeviceFilter* output) { nit: move this ...
3 years, 11 months ago (2017-01-12 00:50:23 UTC) #39
Reilly Grant (use Gerrit)
Addressed juncai@'s feedback.
3 years, 11 months ago (2017-01-12 02:18:33 UTC) #40
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2615353002/diff/120001/device/usb/public/interfaces/device_manager_struct_traits.h File device/usb/public/interfaces/device_manager_struct_traits.h (right): https://codereview.chromium.org/2615353002/diff/120001/device/usb/public/interfaces/device_manager_struct_traits.h#newcode57 device/usb/public/interfaces/device_manager_struct_traits.h:57: device::UsbDeviceFilter* output) { On 2017/01/12 00:50:23, juncai wrote: > ...
3 years, 11 months ago (2017-01-12 02:18:44 UTC) #42
dcheng
mojo lgtm
3 years, 11 months ago (2017-01-12 09:39:03 UTC) #46
Ted C
On 2017/01/12 09:39:03, dcheng wrote: > mojo lgtm android lgtm
3 years, 11 months ago (2017-01-13 16:17:24 UTC) #47
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/2615353002/140001
3 years, 11 months ago (2017-01-17 19:41:56 UTC) #50
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/b71b7d5967c31b07766cf0ad10be89a9e526ed4a
3 years, 11 months ago (2017-01-17 21:17:44 UTC) #53
Wez
Hallo rockot@chromium.org! Due to a depot_tools patch which mistakenly removed the OWNERS check for non-source ...
3 years, 10 months ago (2017-02-07 22:26:36 UTC) #55
Ken Rockot(use gerrit already)
3 years, 10 months ago (2017-02-07 22:28:00 UTC) #56
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698