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

Issue 2539833002: Deliver errors from devtools API calls to callbacks (Closed)

Created:
4 years ago by tmarek
Modified:
4 years ago
Reviewers:
altimin
CC:
chromium-reviews, pfeldman, devtools-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

If there is an error in a devtools API call, invoke the callback with a TYPE_NULL value result and log the error message. This is a partial fix because it at least allows detecting that there was an error, while keeping source-code-level backwards compatibility. BUG=651082 Committed: https://crrev.com/0c99aca28e9e59194c153ea13b85c1d7763467fb Cr-Commit-Position: refs/heads/master@{#435240}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -3 lines) Patch
M headless/lib/browser/devtools_api/domain_cc.template View 1 chunk +5 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_devtools_client_impl.cc View 1 1 chunk +8 lines, -3 lines 0 comments Download
M headless/lib/headless_devtools_client_browsertest.cc View 2 chunks +38 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
tmarek
4 years ago (2016-11-29 16:55:00 UTC) #3
altimin
Thanks for doing this! Couple of nits below. Also, can you please add a header ...
4 years ago (2016-11-29 17:43:28 UTC) #4
tmarek
https://codereview.chromium.org/2539833002/diff/1/headless/lib/browser/headless_devtools_client_impl.cc File headless/lib/browser/headless_devtools_client_impl.cc (right): https://codereview.chromium.org/2539833002/diff/1/headless/lib/browser/headless_devtools_client_impl.cc#newcode133 headless/lib/browser/headless_devtools_client_impl.cc:133: callback.callback_with_result.Run(*base::Value::CreateNullValue()); On 2016/11/29 17:43:27, altimin wrote: > I don't ...
4 years ago (2016-11-30 09:01:09 UTC) #5
altimin
lgtm
4 years ago (2016-11-30 12:12:16 UTC) #6
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/2539833002/20001
4 years ago (2016-11-30 13:23:28 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-30 13:27:21 UTC) #15
commit-bot: I haz the power
4 years ago (2016-11-30 13:30:57 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0c99aca28e9e59194c153ea13b85c1d7763467fb
Cr-Commit-Position: refs/heads/master@{#435240}

Powered by Google App Engine
This is Rietveld 408576698