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

Issue 795543002: Added PermissionIDSet to APIPermissions (Closed)

Created:
6 years ago by sashab
Modified:
6 years ago
Reviewers:
Yoyo Zhou
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@permissions_patch_1_static_initializer_fix
Project:
chromium
Visibility:
Public.

Description

Added PermissionIDSet to APIPermissions Added a GetPermissions() method to APIPermissions, which returns the PermissionIDSet for that API permission. This will be used for the new permission messages system, which can generate CoalescedPermissionMessages from these permissions. BUG=398257 Committed: https://crrev.com/3dd05ace0ab81578fb5a11525501879d054b4370 Cr-Commit-Position: refs/heads/master@{#308034}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Removed unnecessary constructor and added tests for API permissions #

Total comments: 14

Patch Set 3 : Review feedback #

Patch Set 4 : Rebase #

Patch Set 5 : Missing product/vendor string concat #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+705 lines, -156 lines) Patch
M chrome/browser/extensions/permission_message_combinations_unittest.cc View 1 2 2 chunks +309 lines, -3 lines 0 comments Download
M extensions/common/api/sockets/sockets_manifest_permission.cc View 2 chunks +8 lines, -16 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 5 3 chunks +34 lines, -5 lines 0 comments Download
M extensions/common/permissions/api_permission.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M extensions/common/permissions/api_permission_set.h View 1 2 4 chunks +44 lines, -7 lines 0 comments Download
M extensions/common/permissions/api_permission_set.cc View 1 chunk +54 lines, -10 lines 0 comments Download
M extensions/common/permissions/coalesced_permission_message.h View 1 2 chunks +4 lines, -6 lines 0 comments Download
M extensions/common/permissions/media_galleries_permission.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/permissions/media_galleries_permission.cc View 1 2 3 chunks +86 lines, -54 lines 0 comments Download
M extensions/common/permissions/settings_override_permission.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/permissions/settings_override_permission.cc View 3 chunks +17 lines, -0 lines 0 comments Download
M extensions/common/permissions/socket_permission.h View 1 chunk +16 lines, -4 lines 0 comments Download
M extensions/common/permissions/socket_permission.cc View 5 chunks +35 lines, -13 lines 0 comments Download
M extensions/common/permissions/usb_device_permission.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/permissions/usb_device_permission.cc View 1 2 3 4 2 chunks +85 lines, -36 lines 0 comments Download
M extensions/extensions_strings.grd View 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
sashab
Hi yoz; please review. I plan on: - Removing the empty CoalescedPermissionMessage() constructor (it's not ...
6 years ago (2014-12-10 08:57:49 UTC) #2
sashab
Done; ptal :)
6 years ago (2014-12-10 10:10:19 UTC) #3
Yoyo Zhou
LGTM with nits https://codereview.chromium.org/795543002/diff/1/extensions/common/permissions/api_permission_set.h File extensions/common/permissions/api_permission_set.h (right): https://codereview.chromium.org/795543002/diff/1/extensions/common/permissions/api_permission_set.h#newcode84 extensions/common/permissions/api_permission_set.h:84: const base::string16& parameter() const { return ...
6 years ago (2014-12-11 00:54:11 UTC) #6
sashab
Thanks for your feedback on this - updated comments and removed files from headers where ...
6 years ago (2014-12-11 04:15:37 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795543002/70001
6 years ago (2014-12-11 04:16:15 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/7719)
6 years ago (2014-12-11 05:06:44 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795543002/90001
6 years ago (2014-12-11 05:34:31 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/13619)
6 years ago (2014-12-11 06:23:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795543002/110001
6 years ago (2014-12-11 06:42:47 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/7786)
6 years ago (2014-12-11 07:45:43 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795543002/130001
6 years ago (2014-12-11 23:10:48 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:130001)
6 years ago (2014-12-12 02:46:28 UTC) #22
commit-bot: I haz the power
6 years ago (2014-12-12 02:47:20 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3dd05ace0ab81578fb5a11525501879d054b4370
Cr-Commit-Position: refs/heads/master@{#308034}

Powered by Google App Engine
This is Rietveld 408576698