| Index: ui/aura/window.cc
|
| diff --git a/ui/aura/window.cc b/ui/aura/window.cc
|
| index 3e3858ba08624e2a33abe5709690aa0290a72920..9a901b2ddcfee16d60a564766e3c5e5a3dcfedbd 100644
|
| --- a/ui/aura/window.cc
|
| +++ b/ui/aura/window.cc
|
| @@ -143,7 +143,7 @@ void Window::Init(ui::LayerType layer_type) {
|
| port_owner_ = Env::GetInstance()->CreateWindowPort(this);
|
| port_ = port_owner_.get();
|
| }
|
| - SetLayer(new ui::Layer(layer_type));
|
| + SetLayer(base::MakeUnique<ui::Layer>(layer_type));
|
| std::unique_ptr<WindowPortInitData> init_data = port_->OnPreInit(this);
|
| layer()->SetVisible(false);
|
| layer()->set_delegate(this);
|
|
|