Chromium Code Reviews| Index: ui/aura/window.cc |
| diff --git a/ui/aura/window.cc b/ui/aura/window.cc |
| index be941110d69ae30c28682ea9b6857cada6f3afbe..623514137b6f0e3e0055165442cbfa7f5615852c 100644 |
| --- a/ui/aura/window.cc |
| +++ b/ui/aura/window.cc |
| @@ -170,7 +170,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(); |