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

Issue 2837023003: [Extensions Bindings] Add argument parsing errors (Closed)

Created:
3 years, 8 months ago by Devlin
Modified:
3 years, 8 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 argument parsing errors When an invocation is invalid, bindings need to supply a reason why (and currently native bindings just say "invalid invocation"). Add proper error descriptions to reasons argument parsing can fail. BUG=653596 Review-Url: https://codereview.chromium.org/2837023003 Cr-Commit-Position: refs/heads/master@{#467381} Committed: https://chromium.googlesource.com/chromium/src/+/d35ed4510ac666f199cc280c9eec8400cb8b9f03

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : rebase #

Total comments: 6

Patch Set 4 : jbroman's, lazyboy's #

Total comments: 6

Patch Set 5 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+526 lines, -158 lines) Patch
M extensions/renderer/BUILD.gn View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A extensions/renderer/api_invocation_errors.h View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
A extensions/renderer/api_invocation_errors.cc View 1 2 3 4 1 chunk +100 lines, -0 lines 0 comments Download
A extensions/renderer/api_invocation_errors_unittest.cc View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M extensions/renderer/argument_spec.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/renderer/argument_spec.cc View 1 2 3 4 21 chunks +153 lines, -41 lines 0 comments Download
M extensions/renderer/argument_spec_unittest.cc View 1 2 3 4 21 chunks +180 lines, -117 lines 0 comments Download

Messages

Total messages: 28 (19 generated)
Devlin
Folks, mind taking a look? Note that this doesn't hook up the error message to ...
3 years, 8 months ago (2017-04-24 22:19:37 UTC) #2
jbroman
https://codereview.chromium.org/2837023003/diff/40001/extensions/renderer/api_invocation_errors.cc File extensions/renderer/api_invocation_errors.cc (right): https://codereview.chromium.org/2837023003/diff/40001/extensions/renderer/api_invocation_errors.cc#newcode38 extensions/renderer/api_invocation_errors.cc:38: std::string GetError(const char* error, int placeholder) { Hmm, my ...
3 years, 8 months ago (2017-04-25 15:44:55 UTC) #7
lazyboy
https://codereview.chromium.org/2837023003/diff/40001/extensions/renderer/argument_spec.cc File extensions/renderer/argument_spec.cc (right): https://codereview.chromium.org/2837023003/diff/40001/extensions/renderer/argument_spec.cc#newcode52 extensions/renderer/argument_spec.cc:52: // Returns true if |value| is within the bounds ...
3 years, 8 months ago (2017-04-25 18:23:13 UTC) #8
Devlin
https://codereview.chromium.org/2837023003/diff/40001/extensions/renderer/api_invocation_errors.cc File extensions/renderer/api_invocation_errors.cc (right): https://codereview.chromium.org/2837023003/diff/40001/extensions/renderer/api_invocation_errors.cc#newcode38 extensions/renderer/api_invocation_errors.cc:38: std::string GetError(const char* error, int placeholder) { On 2017/04/25 ...
3 years, 8 months ago (2017-04-25 22:47:59 UTC) #12
jbroman
lgtm This isn't surfaced to script yet, right? Or is it? https://codereview.chromium.org/2837023003/diff/100001/extensions/renderer/api_invocation_errors.cc File extensions/renderer/api_invocation_errors.cc (right): ...
3 years, 8 months ago (2017-04-26 14:34:26 UTC) #16
Devlin
On 2017/04/26 14:34:26, jbroman wrote: > This isn't surfaced to script yet, right? Or is ...
3 years, 8 months ago (2017-04-26 16:18:26 UTC) #19
lazyboy
lgtm
3 years, 8 months ago (2017-04-26 17:46:09 UTC) #20
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/2837023003/120001
3 years, 8 months ago (2017-04-26 17:56:57 UTC) #25
commit-bot: I haz the power
3 years, 8 months ago (2017-04-26 18:05:26 UTC) #28
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/d35ed4510ac666f199cc280c9eec...

Powered by Google App Engine
This is Rietveld 408576698