Index: cc/trees/layer_tree_host_unittest_copyrequest.cc |
diff --git a/cc/trees/layer_tree_host_unittest_copyrequest.cc b/cc/trees/layer_tree_host_unittest_copyrequest.cc |
index 28938e5f88b0f19ca95005a11eaec7ae54972b37..4340241e72c628a44a9469a0d1688e8197527ff7 100644 |
--- a/cc/trees/layer_tree_host_unittest_copyrequest.cc |
+++ b/cc/trees/layer_tree_host_unittest_copyrequest.cc |
@@ -412,9 +412,9 @@ class LayerTreeHostTestHiddenSurfaceNotAllocatedForSubtreeCopyRequest |
Renderer* renderer = host_impl->renderer(); |
LayerImpl* root = host_impl->active_tree()->root_layer(); |
- LayerImpl* grand_parent = root->children()[0]; |
- LayerImpl* parent = grand_parent->children()[0]; |
- LayerImpl* copy_layer = parent->children()[0]; |
+ LayerImpl* grand_parent = root->children()[0].get(); |
+ LayerImpl* parent = grand_parent->children()[0].get(); |
+ LayerImpl* copy_layer = parent->children()[0].get(); |
// |parent| owns a surface, but it was hidden and not part of the copy |
// request so it should not allocate any resource. |
@@ -1051,7 +1051,7 @@ class LayerTreeHostCopyRequestTestMultipleDrawsHiddenCopyRequest |
LayerTreeHostImpl::FrameData* frame_data, |
DrawResult draw_result) override { |
LayerImpl* root = host_impl->active_tree()->root_layer(); |
- LayerImpl* child = root->children()[0]; |
+ LayerImpl* child = root->children()[0].get(); |
bool saw_root = false; |
bool saw_child = false; |