Index: cc/trees/layer_tree_host_unittest.cc |
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc |
index 696c8d9222330cef093149b74d58e45a12158c90..de8cac99b684dc78dd96b373f96ad6b530b14c3b 100644 |
--- a/cc/trees/layer_tree_host_unittest.cc |
+++ b/cc/trees/layer_tree_host_unittest.cc |
@@ -375,7 +375,7 @@ class LayerTreeHostTestReadyToDrawVisibility : public LayerTreeHostTest { |
void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override { |
if (!toggled_visibility_) { |
{ |
- DebugScopedSetMainThread main(proxy()); |
+ DebugScopedSetMainThread main(task_runner_provider()); |
layer_tree_host()->SetVisible(false); |
} |
toggled_visibility_ = true; |
@@ -399,7 +399,7 @@ class LayerTreeHostTestReadyToDrawVisibility : public LayerTreeHostTest { |
void DidFinishImplFrameOnThread(LayerTreeHostImpl* host_impl) override { |
if (!host_impl->visible()) { |
{ |
- DebugScopedSetMainThread main(proxy()); |
+ DebugScopedSetMainThread main(task_runner_provider()); |
layer_tree_host()->SetVisible(true); |
} |
EXPECT_TRUE(host_impl->visible()); |