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

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: compilation errors 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..d723745d9e95498a8aacaaa924cf63ba8d95046d 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) : null;
caseq 2017/03/17 18:30:43 nit: we typically prefer "target && target.model(S
dgozman 2017/03/17 21:43:46 Done.
this._tempFile = null;
}

Powered by Google App Engine
This is Rietveld 408576698