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

Issue 2953133002: [Extensions Bindings] Support chrome.extension.lastError (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] Support chrome.extension.lastError For legacy reasons, we surface errors through both chrome.runtime.lastError and chrome.extension.lastError (though the latter is both less fancy [it doesn't check for access] and also not available in all contexts). Allow for providing a "secondary parent" object to the APILastError object to support this. Add unittests and end-to-end tests for the same. BUG=653596 Review-Url: https://codereview.chromium.org/2953133002 Cr-Commit-Position: refs/heads/master@{#483055} Committed: https://chromium.googlesource.com/chromium/src/+/63bbcde542abb20fbadae32ddf2008811a3068ed

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 11

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -62 lines) Patch
M chrome/test/data/extensions/api_test/native_bindings/extension/background.js View 1 chunk +5 lines, -1 line 0 comments Download
M extensions/renderer/bindings/api_binding_js_util_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M extensions/renderer/bindings/api_bindings_system_unittest.h View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download
M extensions/renderer/bindings/api_bindings_system_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M extensions/renderer/bindings/api_last_error.h View 1 2 3 2 chunks +20 lines, -3 lines 0 comments Download
M extensions/renderer/bindings/api_last_error.cc View 1 2 3 7 chunks +80 lines, -47 lines 0 comments Download
M extensions/renderer/bindings/api_last_error_unittest.cc View 1 2 3 2 chunks +53 lines, -1 line 0 comments Download
M extensions/renderer/bindings/api_request_handler_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M extensions/renderer/native_extension_bindings_system.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M extensions/renderer/native_extension_bindings_system.cc View 1 2 3 2 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
Devlin
Hey folks, mind taking a look? https://codereview.chromium.org/2953133002/diff/40001/extensions/renderer/api_last_error.cc File extensions/renderer/api_last_error.cc (right): https://codereview.chromium.org/2953133002/diff/40001/extensions/renderer/api_last_error.cc#newcode219 extensions/renderer/api_last_error.cc:219: if (parent.IsEmpty()) Note: ...
3 years, 6 months ago (2017-06-24 01:24:18 UTC) #7
jbroman
lgtm https://codereview.chromium.org/2953133002/diff/40001/extensions/renderer/api_last_error.cc File extensions/renderer/api_last_error.cc (right): https://codereview.chromium.org/2953133002/diff/40001/extensions/renderer/api_last_error.cc#newcode255 extensions/renderer/api_last_error.cc:255: // This Set() can fail, but there's nothing ...
3 years, 6 months ago (2017-06-25 00:12:49 UTC) #8
lazyboy
lgtm https://codereview.chromium.org/2953133002/diff/40001/extensions/renderer/api_bindings_system_unittest.h File extensions/renderer/api_bindings_system_unittest.h (right): https://codereview.chromium.org/2953133002/diff/40001/extensions/renderer/api_bindings_system_unittest.h#newcode50 extensions/renderer/api_bindings_system_unittest.h:50: virtual v8::Local<v8::Object> GetLastErrorParent( Update documentation. https://codereview.chromium.org/2953133002/diff/40001/extensions/renderer/api_last_error.cc File extensions/renderer/api_last_error.cc ...
3 years, 5 months ago (2017-06-27 17:58:44 UTC) #9
Devlin
https://codereview.chromium.org/2953133002/diff/40001/extensions/renderer/api_bindings_system_unittest.h File extensions/renderer/api_bindings_system_unittest.h (right): https://codereview.chromium.org/2953133002/diff/40001/extensions/renderer/api_bindings_system_unittest.h#newcode50 extensions/renderer/api_bindings_system_unittest.h:50: virtual v8::Local<v8::Object> GetLastErrorParent( On 2017/06/27 17:58:44, lazyboy wrote: > ...
3 years, 5 months ago (2017-06-28 17:52:01 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/2953133002/60001
3 years, 5 months ago (2017-06-28 17:52:35 UTC) #17
commit-bot: I haz the power
3 years, 5 months ago (2017-06-28 17:56:02 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/63bbcde542abb20fbadae32ddf20...

Powered by Google App Engine
This is Rietveld 408576698