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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.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/LayoutTests/http/tests/inspector/layers-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js
index cc2841937dd4cb2e78ed14f4a28bbdf6b830b1f3..8327b786da83f5632bf8324bb468fc25e55a0078 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js
@@ -3,7 +3,7 @@ function initialize_LayerTreeTests()
InspectorTest.layerTreeModel = function()
{
if (!InspectorTest._layerTreeModel)
- InspectorTest._layerTreeModel = Layers.LayerTreeModel.fromTarget(InspectorTest.mainTarget);
+ InspectorTest._layerTreeModel = InspectorTest.mainTarget.model(Layers.LayerTreeModel);
return InspectorTest._layerTreeModel;
}

Powered by Google App Engine
This is Rietveld 408576698