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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/HeapProfilerModel.js

Issue 2450973002: [DevTools] Inherit WI.Target from Protocol.Target. (Closed)
Patch Set: Created 4 years, 2 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/sdk/HeapProfilerModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/HeapProfilerModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/HeapProfilerModel.js
index 024052e45442d7351635754d8f63554ae5e1b74a..2f1b03fd9cd80968f907bf380ff12220d04e9b59 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/HeapProfilerModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/HeapProfilerModel.js
@@ -42,9 +42,7 @@ WebInspector.HeapProfilerModel.prototype = {
stopSampling: function()
{
this._isRecording = false;
- var currentProfile = null;
- return this._heapProfilerAgent.stopSampling((error, profile) => { currentProfile = !error ? profile : null; })
- .then(() => currentProfile);
+ return this._heapProfilerAgent.stopSampling((error, profile) => error ? null : profile);
},
/**

Powered by Google App Engine
This is Rietveld 408576698