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

Issue 2821723002: Move classes in the device.usb Mojo namespace to device.mojom (Closed)

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

Description

Move classes in the device.usb Mojo namespace to device.mojom The USB Mojo service was added before there was clear guidance on what namespace Mojo modules should use. The convention is now to use foo.mojom. The USB Mojo service implementation is still in the device::usb namespace which violates the general Chromium style guide recommendation to not use nested namespaces. This will be fixed in a later patch. BUG=699790 Review-Url: https://codereview.chromium.org/2821723002 Cr-Commit-Position: refs/heads/master@{#465467} Committed: https://chromium.googlesource.com/chromium/src/+/c961656d2eb17624ee36f3bde2617aa73fb6f246

Patch Set 1 #

Patch Set 2 : fix some tests #

Patch Set 3 : fix usb_descriptors_fuzzer #

Total comments: 11

Patch Set 4 : mcasas@ nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+490 lines, -557 lines) Patch
M chrome/browser/android/usb/web_usb_chooser_service_android.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/android/usb/web_usb_chooser_service_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_manifest_overlay.json View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/android/usb_chooser_dialog_android.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/android/usb_chooser_dialog_android.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/usb/usb_browsertest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/usb/usb_chooser_controller.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/usb/usb_chooser_controller.cc View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/usb/usb_chooser_controller_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/usb/usb_tab_helper.h View 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/usb/usb_tab_helper.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/usb/web_usb_chooser_service.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/usb/web_usb_chooser_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M device/usb/mojo/device_impl.h View 5 chunks +11 lines, -10 lines 0 comments Download
M device/usb/mojo/device_impl.cc View 19 chunks +44 lines, -38 lines 0 comments Download
M device/usb/mojo/device_impl_unittest.cc View 25 chunks +67 lines, -57 lines 0 comments Download
M device/usb/mojo/device_manager_impl.h View 3 chunks +9 lines, -8 lines 0 comments Download
M device/usb/mojo/device_manager_impl.cc View 5 chunks +9 lines, -9 lines 0 comments Download
M device/usb/mojo/device_manager_impl_unittest.cc View 7 chunks +23 lines, -16 lines 0 comments Download
M device/usb/mojo/type_converters.h View 2 chunks +25 lines, -22 lines 0 comments Download
M device/usb/mojo/type_converters.cc View 1 2 3 6 chunks +70 lines, -67 lines 0 comments Download
M device/usb/public/interfaces/OWNERS View 1 chunk +3 lines, -0 lines 0 comments Download
M device/usb/public/interfaces/chooser_service.mojom View 1 chunk +4 lines, -4 lines 0 comments Download
M device/usb/public/interfaces/device.mojom View 10 chunks +35 lines, -33 lines 0 comments Download
M device/usb/public/interfaces/device_manager.mojom View 2 chunks +11 lines, -11 lines 0 comments Download
M device/usb/public/interfaces/device_manager.typemap View 1 chunk +1 line, -1 line 0 comments Download
M device/usb/public/interfaces/device_manager_struct_traits.h View 2 chunks +2 lines, -2 lines 0 comments Download
M device/usb/public/interfaces/device_manager_struct_traits.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M device/usb/usb_descriptors_fuzzer.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/usb/resources/fake-devices.js View 1 chunk +0 lines, -120 lines 0 comments Download
M third_party/WebKit/LayoutTests/usb/resources/webusb-test.js View 13 chunks +19 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USB.h View 3 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USB.cpp View 7 chunks +12 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBAlternateInterface.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBAlternateInterface.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBConfiguration.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBConfiguration.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBDevice.h View 3 chunks +20 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBDevice.cpp View 14 chunks +46 lines, -38 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBEndpoint.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp View 4 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBInterface.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBInterface.cpp View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (20 generated)
Reilly Grant (use Gerrit)
PTAL
3 years, 8 months ago (2017-04-14 19:30:10 UTC) #4
Reilly Grant (use Gerrit)
+miguelg@ for */android/* +mbarbella@ for device/usb/public/interfaces/* and chrome/browser/chrome_content_browser_manifest_overlay.json
3 years, 8 months ago (2017-04-14 20:00:50 UTC) #10
Reilly Grant (use Gerrit)
fix usb_descriptors_fuzzer
3 years, 8 months ago (2017-04-14 21:00:30 UTC) #13
mcasas
lgtm with some minor things https://codereview.chromium.org/2821723002/diff/40001/chrome/browser/chrome_content_browser_manifest_overlay.json File chrome/browser/chrome_content_browser_manifest_overlay.json (right): https://codereview.chromium.org/2821723002/diff/40001/chrome/browser/chrome_content_browser_manifest_overlay.json#newcode43 chrome/browser/chrome_content_browser_manifest_overlay.json:43: "chrome::mojom::OpenSearchDocumentDescriptionHandler", Oh, this one ...
3 years, 8 months ago (2017-04-14 22:00:46 UTC) #16
Reilly Grant (use Gerrit)
mcasas@ nits
3 years, 8 months ago (2017-04-14 22:13:18 UTC) #17
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2821723002/diff/40001/chrome/browser/chrome_content_browser_manifest_overlay.json File chrome/browser/chrome_content_browser_manifest_overlay.json (right): https://codereview.chromium.org/2821723002/diff/40001/chrome/browser/chrome_content_browser_manifest_overlay.json#newcode43 chrome/browser/chrome_content_browser_manifest_overlay.json:43: "chrome::mojom::OpenSearchDocumentDescriptionHandler", On 2017/04/14 22:00:46, mcasas wrote: > Oh, this ...
3 years, 8 months ago (2017-04-14 22:15:30 UTC) #18
Reilly Grant (use Gerrit)
Friendly ping.
3 years, 8 months ago (2017-04-18 15:48:51 UTC) #23
Miguel Garcia
Apologies for the delay, London was out Friday and Monday due to Easter holidays */android/* ...
3 years, 8 months ago (2017-04-18 15:51:45 UTC) #24
Martin Barbella
security lgtm
3 years, 8 months ago (2017-04-18 23:54:14 UTC) #25
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/2821723002/60001
3 years, 8 months ago (2017-04-19 00:14:05 UTC) #28
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 02:06:27 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c961656d2eb17624ee36f3bde261...

Powered by Google App Engine
This is Rietveld 408576698