Index: Source/devtools/front_end/profiler/CPUProfileView.js |
diff --git a/Source/devtools/front_end/profiler/CPUProfileView.js b/Source/devtools/front_end/profiler/CPUProfileView.js |
index 8a487fee47e95b56af355266728ddc7dff859f56..d0ca40e022187bf66dd53067ac1d6babda34bed1 100644 |
--- a/Source/devtools/front_end/profiler/CPUProfileView.js |
+++ b/Source/devtools/front_end/profiler/CPUProfileView.js |
@@ -644,7 +644,7 @@ WebInspector.CPUProfileType.prototype = { |
this._profileBeingRecorded.updateStatus(""); |
var recordedProfile = this._profileBeingRecorded; |
this.setProfileBeingRecorded(null); |
- WebInspector.panels.profiles.showProfile(recordedProfile); |
+ this.dispatchEventToListeners(WebInspector.ProfileType.Events.ProfileComplete, recordedProfile); |
} |
ProfilerAgent.stop(didStopProfiling.bind(this)); |
}, |
@@ -753,11 +753,12 @@ WebInspector.CPUProfileHeader.prototype = { |
/** |
* @override |
+ * @param {!WebInspector.ProfilesPanel} panel |
* @return {!WebInspector.ProfileSidebarTreeElement} |
*/ |
- createSidebarTreeElement: function() |
+ createSidebarTreeElement: function(panel) |
{ |
- return new WebInspector.ProfileSidebarTreeElement(this, "profile-sidebar-tree-item"); |
+ return new WebInspector.ProfileSidebarTreeElement(panel, this, "profile-sidebar-tree-item"); |
}, |
/** |