Chromium Code Reviews| Index: ui/aura/window.cc |
| diff --git a/ui/aura/window.cc b/ui/aura/window.cc |
| index ead05ddc6dc41cbcae10f4879886e3d74bd45027..31e2d58d1f22e135063aa5bab87681556f9da55d 100644 |
| --- a/ui/aura/window.cc |
| +++ b/ui/aura/window.cc |
| @@ -169,7 +169,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(); |