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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/ExecutionContextSelector.js

Issue 2782773002: [DevTools] Remove SDKModels' fromTarget methods (Closed)
Patch Set: addressed review comments 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/ExecutionContextSelector.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/ExecutionContextSelector.js b/third_party/WebKit/Source/devtools/front_end/main/ExecutionContextSelector.js
index a337b0122cd4e054c253b7469cbd6d61ab8c73dd..1600d39b1515eb619f09ff6017570d0b8caa3a40 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/ExecutionContextSelector.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/ExecutionContextSelector.js
@@ -129,7 +129,7 @@ Main.ExecutionContextSelector = class {
return false;
if (executionContext.target().parentTarget())
return false;
- var resourceTreeModel = SDK.ResourceTreeModel.fromTarget(executionContext.target());
+ var resourceTreeModel = executionContext.target().model(SDK.ResourceTreeModel);
var frame = resourceTreeModel && resourceTreeModel.frameForId(executionContext.frameId);
if (frame && frame.isMainFrame())
return true;

Powered by Google App Engine
This is Rietveld 408576698