| 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);
|
| },
|
|
|
| /**
|
|
|