| Index: ui/compositor/layer_tree_owner.cc
|
| diff --git a/ui/compositor/layer_tree_owner.cc b/ui/compositor/layer_tree_owner.cc
|
| index ebb0a7fc7f4b9da01245d897d4d9e66e19c5da82..768c5e34a2b51d418a86e03a426629a4e922e961 100644
|
| --- a/ui/compositor/layer_tree_owner.cc
|
| +++ b/ui/compositor/layer_tree_owner.cc
|
| @@ -24,7 +24,8 @@ void DeepDeleteLayers(Layer* layer) {
|
|
|
| } // namespace
|
|
|
| -LayerTreeOwner::LayerTreeOwner(Layer* root) : root_(root) {}
|
| +LayerTreeOwner::LayerTreeOwner(std::unique_ptr<Layer> root)
|
| + : root_(root.release()) {}
|
|
|
| LayerTreeOwner::~LayerTreeOwner() {
|
| if (root_)
|
|
|