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

Issue 2950353004: [Extensions Bindings] Check availability of custom API properties (Closed)

Created:
3 years, 6 months ago by Devlin
Modified:
3 years, 5 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] Check availability of custom API properties Check whether custom API properties are available to a context before returning them on an API. Since these objects can be multiple layers deep (e.g., privacy.websites.protectedContentEnabled), we perform this check when returning the object, rather than when we instantiate the API. This has the drawbacks of leaving the key in the API object as well as only applying to custom-typed properties (as opposed to POD-style properties), but this is sufficient for our use cases, given their rarity. Add tests for the same. BUG=653596 Review-Url: https://codereview.chromium.org/2950353004 Cr-Commit-Position: refs/heads/master@{#484776} Committed: https://chromium.googlesource.com/chromium/src/+/7918e9f775cd1a68345bd755af75939e8f282194

Patch Set 1 : . #

Total comments: 1

Patch Set 2 : v2 #

Patch Set 3 : fix ifdef #

Total comments: 6

Patch Set 4 : . #

Patch Set 5 : jbroman's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -0 lines) Patch
M extensions/renderer/bindings/api_binding.cc View 1 2 3 4 2 chunks +32 lines, -0 lines 0 comments Download
M extensions/renderer/bindings/api_binding_unittest.cc View 1 2 3 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (36 generated)
Devlin
Hey folks, mind taking a look? This one's a bit interesting. For our current purposes, ...
3 years, 5 months ago (2017-06-26 20:33:36 UTC) #17
jbroman
At the risk of exposing my ignorance...what's wrong with the way binding.js does it (looking ...
3 years, 5 months ago (2017-06-27 19:49:57 UTC) #18
Devlin
On 2017/06/27 19:49:57, jbroman wrote: > At the risk of exposing my ignorance...what's wrong with ...
3 years, 5 months ago (2017-06-27 22:37:30 UTC) #19
Devlin
On 2017/06/27 22:37:30, Devlin wrote: > On 2017/06/27 19:49:57, jbroman wrote: > > At the ...
3 years, 5 months ago (2017-06-28 20:48:15 UTC) #22
jbroman
lgtm https://codereview.chromium.org/2950353004/diff/80001/extensions/renderer/bindings/api_binding.cc File extensions/renderer/bindings/api_binding.cc (right): https://codereview.chromium.org/2950353004/diff/80001/extensions/renderer/bindings/api_binding.cc#newcode35 extensions/renderer/bindings/api_binding.cc:35: return "chromeos"; I assume you'll look into what's ...
3 years, 5 months ago (2017-06-29 15:24:21 UTC) #31
Devlin
https://codereview.chromium.org/2950353004/diff/80001/extensions/renderer/bindings/api_binding.cc File extensions/renderer/bindings/api_binding.cc (right): https://codereview.chromium.org/2950353004/diff/80001/extensions/renderer/bindings/api_binding.cc#newcode35 extensions/renderer/bindings/api_binding.cc:35: return "chromeos"; On 2017/06/29 15:24:21, jbroman wrote: > I ...
3 years, 5 months ago (2017-06-29 21:00:51 UTC) #35
lazyboy
lgtm
3 years, 5 months ago (2017-07-06 22:01:15 UTC) #39
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/2950353004/120001
3 years, 5 months ago (2017-07-06 22:24:37 UTC) #42
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 00:13:06 UTC) #45
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/7918e9f775cd1a68345bd755af75...

Powered by Google App Engine
This is Rietveld 408576698