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

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

Issue 2450663004: DevTools: do not allow using 'this' before call into super. (Closed)
Patch Set: rebaselined 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/CPUProfileDataModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/CPUProfileDataModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/CPUProfileDataModel.js
index cbafaa150e913a73afb0c735202d5e5d1d5b7b7d..a4b1350c057abceb65823b281ddd36f2ae5b6822 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/CPUProfileDataModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/CPUProfileDataModel.js
@@ -37,6 +37,7 @@ WebInspector.CPUProfileNode.prototype = {
*/
WebInspector.CPUProfileDataModel = function(profile)
{
+ WebInspector.ProfileTreeModel.call(this);
var isLegacyFormat = !!profile["head"];
if (isLegacyFormat) {
// Legacy format contains raw timestamps and start/stop times are in seconds.
@@ -53,7 +54,7 @@ WebInspector.CPUProfileDataModel = function(profile)
this.samples = profile.samples;
this.totalHitCount = 0;
this.profileHead = this._translateProfileTree(profile.nodes);
- WebInspector.ProfileTreeModel.call(this, this.profileHead);
+ this.initialize(this.profileHead);
this._extractMetaNodes();
if (this.samples) {
this._buildIdToNodeMap();

Powered by Google App Engine
This is Rietveld 408576698