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

Issue 2947843004: [Extensions Bindings] Introduce BindingAccessChecker (Closed)

Created:
3 years, 6 months ago by Devlin
Modified:
3 years, 6 months ago
Reviewers:
lazyboy, jbroman
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions Bindings] Introduce BindingAccessChecker Add a new class, BindingAccessChecker, to handle checking for access to a given feature and optionally throwing an error if access is forbidden. Currently, this is only used in APIBinding, but a followup will expand its usage. Add tests for the same. BUG=653596 Review-Url: https://codereview.chromium.org/2947843004 Cr-Commit-Position: refs/heads/master@{#481453} Committed: https://chromium.googlesource.com/chromium/src/+/406dff52dcdcd355988cbf2be9070d97bc45b633

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : lazyboy's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -38 lines) Patch
M extensions/renderer/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M extensions/renderer/api_binding.h View 1 2 5 chunks +6 lines, -10 lines 0 comments Download
M extensions/renderer/api_binding.cc View 5 chunks +7 lines, -9 lines 0 comments Download
M extensions/renderer/api_binding_unittest.cc View 6 chunks +9 lines, -4 lines 0 comments Download
M extensions/renderer/api_bindings_system.h View 1 4 chunks +13 lines, -10 lines 0 comments Download
M extensions/renderer/api_bindings_system.cc View 3 chunks +5 lines, -5 lines 0 comments Download
A extensions/renderer/binding_access_checker.h View 1 chunk +45 lines, -0 lines 0 comments Download
A extensions/renderer/binding_access_checker.cc View 1 chunk +36 lines, -0 lines 0 comments Download
A extensions/renderer/binding_access_checker_unittest.cc View 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
Devlin
Hey folks, mind taking a look?
3 years, 6 months ago (2017-06-20 23:02:59 UTC) #7
jbroman
lgtm
3 years, 6 months ago (2017-06-20 23:33:51 UTC) #8
lazyboy
lgtm https://codereview.chromium.org/2947843004/diff/20001/extensions/renderer/api_binding.h File extensions/renderer/api_binding.h (right): https://codereview.chromium.org/2947843004/diff/20001/extensions/renderer/api_binding.h#newcode149 extensions/renderer/api_binding.h:149: const BindingAccessChecker* access_checker_; const T* const access_checker_...
3 years, 6 months ago (2017-06-22 00:14:21 UTC) #9
Devlin
https://codereview.chromium.org/2947843004/diff/20001/extensions/renderer/api_binding.h File extensions/renderer/api_binding.h (right): https://codereview.chromium.org/2947843004/diff/20001/extensions/renderer/api_binding.h#newcode149 extensions/renderer/api_binding.h:149: const BindingAccessChecker* access_checker_; On 2017/06/22 00:14:21, lazyboy wrote: > ...
3 years, 6 months ago (2017-06-22 01:21:28 UTC) #12
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/2947843004/40001
3 years, 6 months ago (2017-06-22 01:22:18 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/485188)
3 years, 6 months ago (2017-06-22 04:21:13 UTC) #18
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/2947843004/40001
3 years, 6 months ago (2017-06-22 04:58:13 UTC) #20
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 05:45:29 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/406dff52dcdcd355988cbf2be907...

Powered by Google App Engine
This is Rietveld 408576698