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

Issue 2609553003: [Extensions Bindings] Allow custom hooks to return values, throw (Closed)

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

Description

[Extensions Bindings] Allow custom hooks to return values, throw Custom hooks need the ability to return results synchronously and throw exceptions in the case of bad invocations. Update native bindings to allow for hooks to do this, and add a number of tests. BUG=653596 Review-Url: https://codereview.chromium.org/2609553003 Cr-Commit-Position: refs/heads/master@{#442037} Committed: https://chromium.googlesource.com/chromium/src/+/3a066a5d5906e16b1a9281dd6d987f8defd1a87f

Patch Set 1 : woot #

Total comments: 4

Patch Set 2 : jbroman #

Total comments: 6

Patch Set 3 : nits #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -27 lines) Patch
M extensions/renderer/api_binding.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M extensions/renderer/api_binding_hooks.h View 1 2 2 chunks +16 lines, -7 lines 0 comments Download
M extensions/renderer/api_binding_hooks.cc View 1 5 chunks +22 lines, -9 lines 0 comments Download
M extensions/renderer/api_binding_unittest.cc View 1 2 3 2 chunks +196 lines, -3 lines 0 comments Download
M extensions/renderer/api_bindings_system_unittest.cc View 1 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
Devlin
Heya, please take a look. Technically depends on https://codereview.chromium.org/2598123002/, but it's a small enough dependency ...
3 years, 11 months ago (2016-12-29 18:37:36 UTC) #8
jbroman
Largely looks good to me; I'll have a closer look at the unit tests once ...
3 years, 11 months ago (2017-01-02 20:05:46 UTC) #9
Devlin
https://codereview.chromium.org/2609553003/diff/20001/extensions/renderer/api_binding.cc File extensions/renderer/api_binding.cc (right): https://codereview.chromium.org/2609553003/diff/20001/extensions/renderer/api_binding.cc#newcode228 extensions/renderer/api_binding.cc:228: if (!return_value.IsEmpty()) On 2017/01/02 20:05:46, jbroman wrote: > Do ...
3 years, 11 months ago (2017-01-04 18:38:07 UTC) #10
jbroman
lgtm https://codereview.chromium.org/2609553003/diff/40001/extensions/renderer/api_binding_hooks.h File extensions/renderer/api_binding_hooks.h (right): https://codereview.chromium.org/2609553003/diff/40001/extensions/renderer/api_binding_hooks.h#newcode44 extensions/renderer/api_binding_hooks.h:44: ~RequestResult(); Is the [chromium-style] plugin forcing these to ...
3 years, 11 months ago (2017-01-04 21:57:49 UTC) #11
lazyboy
https://codereview.chromium.org/2609553003/diff/40001/extensions/renderer/api_binding_unittest.cc File extensions/renderer/api_binding_unittest.cc (right): https://codereview.chromium.org/2609553003/diff/40001/extensions/renderer/api_binding_unittest.cc#newcode809 extensions/renderer/api_binding_unittest.cc:809: EXPECT_EQ(1u, arguments->size()); Is this line correct given the condition ...
3 years, 11 months ago (2017-01-04 23:22:45 UTC) #12
Devlin
https://codereview.chromium.org/2609553003/diff/40001/extensions/renderer/api_binding_hooks.h File extensions/renderer/api_binding_hooks.h (right): https://codereview.chromium.org/2609553003/diff/40001/extensions/renderer/api_binding_hooks.h#newcode44 extensions/renderer/api_binding_hooks.h:44: ~RequestResult(); On 2017/01/04 21:57:49, jbroman wrote: > Is the ...
3 years, 11 months ago (2017-01-04 23:29:29 UTC) #13
lazyboy
lgtm
3 years, 11 months ago (2017-01-05 00:15:17 UTC) #14
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/2609553003/80001
3 years, 11 months ago (2017-01-06 20:36:44 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 20:45:32 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/3a066a5d5906e16b1a9281dd6d98...

Powered by Google App Engine
This is Rietveld 408576698