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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js

Issue 2752403002: [DevTools] Migrate usages of Target to RuntimeModel where makes sense (Closed)
Patch Set: review comments addressed Created 3 years, 9 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/profiler/ProfileView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js
index cad9b64187a517931e07e0a9528bae348cf8adc8..4acf659c8e93695438be8c1f7cb03fc76a2dae41 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js
@@ -401,7 +401,7 @@ Profiler.WritableProfileHeader = class extends Profiler.ProfileHeader {
*/
constructor(target, type, title) {
super(target, type, title || Common.UIString('Profile %d', type.nextProfileUid()));
- this._debuggerModel = SDK.DebuggerModel.fromTarget(target);
+ this._debuggerModel = target && target.model(SDK.DebuggerModel);
this._tempFile = null;
}

Powered by Google App Engine
This is Rietveld 408576698