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

Unified Diff: third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js

Issue 2850333002: DevTools: Promisify Profiler and HeapProfiler domains (Closed)
Patch Set: addressing comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js
diff --git a/third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js b/third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js
index 8dffb4581a19902f968543fd6458e0e65f608e80..db210fdaddf4b8a7b929bce7112e4ddf3b0d47e1 100644
--- a/third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js
+++ b/third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js
@@ -628,9 +628,10 @@ Protocol.InspectorBackend._AgentPrototype = class {
/**
* @param {!Array<*>} args
+ * @return {?}
*/
function runUserCallback(args) {
- return userCallback ? userCallback.apply(null, args) : undefined;
+ return userCallback ? userCallback.apply(null, args) : !args[0] && args[1] || null;
}
}

Powered by Google App Engine
This is Rietveld 408576698