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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.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/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index be2b1c0610a33d10fb9d84a4a1205df5d415a04a..343df2ecd7ce55e269076ec1ab35823b5f560e17 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -488,7 +488,7 @@ Main.Main.InspectorDomainDispatcher = class {
* @override
*/
targetCrashed() {
- var debuggerModel = SDK.DebuggerModel.fromTarget(this._target);
+ var debuggerModel = this._target.model(SDK.DebuggerModel);
if (debuggerModel)
Main.TargetCrashedScreen.show(debuggerModel);
}

Powered by Google App Engine
This is Rietveld 408576698