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

Issue 2847853002: [Extensions Bindings] Add errors to signature parsing (Closed)

Created:
3 years, 7 months ago by Devlin
Modified:
3 years, 7 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] Add errors to signature parsing Curry up the errors from argument parsing to signature parsing in order to indicate to scripts which argument threw the error. Update the APISignature unittests to test the new behavior. BUG=653596 Review-Url: https://codereview.chromium.org/2847853002 Cr-Commit-Position: refs/heads/master@{#468486} Committed: https://chromium.googlesource.com/chromium/src/+/29fdc161a3c313e67f09e0ef891b747005a4ccae

Patch Set 1 #

Total comments: 7

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -36 lines) Patch
M extensions/renderer/api_invocation_errors.h View 2 chunks +7 lines, -0 lines 0 comments Download
M extensions/renderer/api_invocation_errors.cc View 2 chunks +14 lines, -0 lines 0 comments Download
M extensions/renderer/api_invocation_errors_unittest.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M extensions/renderer/api_signature.cc View 1 8 chunks +26 lines, -7 lines 0 comments Download
M extensions/renderer/api_signature_unittest.cc View 1 8 chunks +62 lines, -28 lines 0 comments Download
M extensions/renderer/argument_spec.cc View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 16 (9 generated)
Devlin
Another one for y'all. Note: this still doesn't surface error to script (that's the next ...
3 years, 7 months ago (2017-04-27 19:02:14 UTC) #2
jbroman
lgtm https://codereview.chromium.org/2847853002/diff/1/extensions/renderer/api_signature.cc File extensions/renderer/api_signature.cc (right): https://codereview.chromium.org/2847853002/diff/1/extensions/renderer/api_signature.cc#newcode184 extensions/renderer/api_signature.cc:184: *error_ = api_errors::TooManyArguments(); Can this happen when the ...
3 years, 7 months ago (2017-04-27 19:37:20 UTC) #3
lazyboy
lgtm https://codereview.chromium.org/2847853002/diff/1/extensions/renderer/api_signature.cc File extensions/renderer/api_signature.cc (right): https://codereview.chromium.org/2847853002/diff/1/extensions/renderer/api_signature.cc#newcode195 extensions/renderer/api_signature.cc:195: *error_ = api_errors::MissingRequiredArgument(spec.name().c_str()); Here and line 209, remove ...
3 years, 7 months ago (2017-04-27 20:55:03 UTC) #4
Devlin
https://codereview.chromium.org/2847853002/diff/1/extensions/renderer/api_signature.cc File extensions/renderer/api_signature.cc (right): https://codereview.chromium.org/2847853002/diff/1/extensions/renderer/api_signature.cc#newcode184 extensions/renderer/api_signature.cc:184: *error_ = api_errors::TooManyArguments(); On 2017/04/27 19:37:20, jbroman wrote: > ...
3 years, 7 months ago (2017-05-01 22:22:09 UTC) #6
lazyboy
https://codereview.chromium.org/2847853002/diff/1/extensions/renderer/api_signature.cc File extensions/renderer/api_signature.cc (right): https://codereview.chromium.org/2847853002/diff/1/extensions/renderer/api_signature.cc#newcode195 extensions/renderer/api_signature.cc:195: *error_ = api_errors::MissingRequiredArgument(spec.name().c_str()); On 2017/05/01 22:22:09, Devlin wrote: > ...
3 years, 7 months ago (2017-05-01 23:14:21 UTC) #8
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/2847853002/20001
3 years, 7 months ago (2017-05-01 23:32:48 UTC) #13
commit-bot: I haz the power
3 years, 7 months ago (2017-05-01 23:40:19 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/29fdc161a3c313e67f09e0ef891b...

Powered by Google App Engine
This is Rietveld 408576698