Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Issue 11280311: Implement chrome.usb API Permissions. (Closed)

Created:
8 years ago by bryeung
Modified:
8 years ago
CC:
chromium-reviews, Aaron Boodman, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Implement chrome.usb API Permissions. This change introduces the concept of a permission that MUST be optional. The usbDevice permission is the first example of this type of permission. The permission is specified as a vendorId:productId pair, encoded as a string. BUG=123801 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172271

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix nit #

Patch Set 3 : fix win build & unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -35 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/permissions/permissions_api_helpers.cc View 3 chunks +32 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/usb/usb_api.cc View 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_messages.cc View 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 3 chunks +27 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 3 chunks +11 lines, -1 line 0 comments Download
M chrome/common/extensions/permissions/api_permission.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/bluetooth_device_permission.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/common/extensions/permissions/bluetooth_device_permission.cc View 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/common/extensions/permissions/permission_message.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/permissions/usb_device_permission.h View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/common/extensions/permissions/usb_device_permission.cc View 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/common/extensions/permissions/usb_device_permission_data.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/common/extensions/permissions/usb_device_permission_data.cc View 1 2 1 chunk +84 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/permissions_custom_bindings.js View 1 chunk +2 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/optional_only_permission/manifest1.json View 1 chunk +3 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/optional_only_permission/manifest2.json View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
bryeung
tsepez: for extension_messages* sky: for DEPS/gypi changes mpcomplete: for extensions changes gdk: because it touches ...
8 years ago (2012-12-10 22:23:10 UTC) #1
Tom Sepez
In general, we'd be happier if you were passing the underlying members of the struct ...
8 years ago (2012-12-10 22:30:12 UTC) #2
Matt Perry
Has the USB API undergone an extensions API review?
8 years ago (2012-12-10 22:32:52 UTC) #3
bryeung
On 2012/12/10 22:30:12, Tom Sepez wrote: > In general, we'd be happier if you were ...
8 years ago (2012-12-10 22:35:39 UTC) #4
Tom Sepez
LGTM for now, but please assign an owner to that bug and ensure it doesn't ...
8 years ago (2012-12-10 22:39:41 UTC) #5
Matt Perry
Is it possible with our permission system to specify permissions like "usb": {vendorId: 432, productId: ...
8 years ago (2012-12-10 23:16:43 UTC) #6
bryeung
On Mon, Dec 10, 2012 at 6:16 PM, <[email protected]> wrote: > Is it possible with ...
8 years ago (2012-12-10 23:22:12 UTC) #7
Matt Perry
On 2012/12/10 23:22:12, bryeung wrote: > On Mon, Dec 10, 2012 at 6:16 PM, <mailto:[email protected]> ...
8 years ago (2012-12-10 23:27:29 UTC) #8
bryeung
On Mon, Dec 10, 2012 at 6:27 PM, <[email protected]> wrote: > On 2012/12/10 23:22:12, bryeung ...
8 years ago (2012-12-10 23:31:41 UTC) #9
sky
DEPS/*GYP LGTM
8 years ago (2012-12-11 00:06:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11280311/4002
8 years ago (2012-12-11 01:28:19 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests
8 years ago (2012-12-11 02:21:52 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11280311/5003
8 years ago (2012-12-11 02:25:38 UTC) #13
commit-bot: I haz the power
8 years ago (2012-12-11 07:18:17 UTC) #14
Message was sent while issue was closed.
Change committed as 172271

Powered by Google App Engine
This is Rietveld 408576698