| Index: Source/devtools/front_end/sdk/CPUProfilerModel.js
|
| diff --git a/Source/devtools/front_end/sdk/CPUProfilerModel.js b/Source/devtools/front_end/sdk/CPUProfilerModel.js
|
| index 90a6269003869466925911857cd1f958349830bd..ac9c5fce52816a2afb6831480ef3a226e57630c0 100644
|
| --- a/Source/devtools/front_end/sdk/CPUProfilerModel.js
|
| +++ b/Source/devtools/front_end/sdk/CPUProfilerModel.js
|
| @@ -123,16 +123,17 @@ WebInspector.CPUProfilerModel.prototype = {
|
| stopRecording: function()
|
| {
|
| /**
|
| - * @param {?{profile: !ProfilerAgent.CPUProfile}} value
|
| + * @param {?Protocol.Error} error
|
| + * @param {?ProfilerAgent.CPUProfile} profile
|
| * @return {?ProfilerAgent.CPUProfile}
|
| */
|
| - function extractProfile(value)
|
| + function extractProfile(error, profile)
|
| {
|
| - return value && value.profile;
|
| + return !error && profile ? profile : null;
|
| }
|
| this._isRecording = false;
|
| this.dispatchEventToListeners(WebInspector.CPUProfilerModel.EventTypes.ProfileStopped);
|
| - return this.target().profilerAgent().stop().then(extractProfile);
|
| + return this.target().profilerAgent().stop(extractProfile);
|
| },
|
|
|
| dispose: function()
|
|
|