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

Issue 2850333002: DevTools: Promisify Profiler and HeapProfiler domains (Closed)

Created:
3 years, 7 months ago by alph
Modified:
3 years, 7 months ago
Reviewers:
dgozman, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Promisify Profiler and HeapProfiler domains Get rid of method callbacks. Return the protocol method result with a Promise. There are some limitations for the API: 1. Only the first return parameter of the callback is provided. 2. The error string is not available. If the caller needs the error string or other return parameters please use more generic invoke_* version of the protocol method. Review-Url: https://codereview.chromium.org/2850333002 Cr-Commit-Position: refs/heads/master@{#468842} Committed: https://chromium.googlesource.com/chromium/src/+/4b71ab4d94952c27398fb398aaf12dcd3008a4cc

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressing comments #

Messages

Total messages: 14 (8 generated)
alph
3 years, 7 months ago (2017-05-02 01:17:14 UTC) #2
dgozman
So if I add a second output parameter, it continues to compile and work? Sounds ...
3 years, 7 months ago (2017-05-02 20:03:42 UTC) #3
alph
ptal https://codereview.chromium.org/2850333002/diff/1/third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js File third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js (right): https://codereview.chromium.org/2850333002/diff/1/third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js#newcode634 third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js:634: return userCallback ? userCallback.apply(null, args) : args[1] || ...
3 years, 7 months ago (2017-05-02 22:48:06 UTC) #4
dgozman
lgtm
3 years, 7 months ago (2017-05-02 23:21:34 UTC) #7
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/2850333002/20001
3 years, 7 months ago (2017-05-03 00:33:08 UTC) #11
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 00:39:20 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/4b71ab4d94952c27398fb398aaf1...

Powered by Google App Engine
This is Rietveld 408576698