Chromium Code Reviews| Index: ui/aura/window.cc |
| diff --git a/ui/aura/window.cc b/ui/aura/window.cc |
| index d92078768d12c4d114c7178ac53db7372da53c33..4e7dbf0b643c257db0f2d4c8ca1f2fdb0f25c39e 100644 |
| --- a/ui/aura/window.cc |
| +++ b/ui/aura/window.cc |
| @@ -171,7 +171,7 @@ Window::~Window() { |
| } |
| void Window::Init(ui::LayerType layer_type) { |
| - SetLayer(new ui::Layer(layer_type)); |
| + SetLayer(base::MakeUnique<ui::Layer>(layer_type)); |
| layer()->SetVisible(false); |
| layer()->set_delegate(this); |
| UpdateLayerName(); |