Index: ui/views/view.cc |
diff --git a/ui/views/view.cc b/ui/views/view.cc |
index 3cb42dca9dab0b6b57422f07348b4cc15293f3fa..55acfceb172f147b2df160244d46577987450da6 100644 |
--- a/ui/views/view.cc |
+++ b/ui/views/view.cc |
@@ -2079,7 +2079,7 @@ void View::CreateLayer() { |
for (int i = 0, count = child_count(); i < count; ++i) |
child_at(i)->UpdateChildLayerVisibility(true); |
- SetLayer(new ui::Layer()); |
+ SetLayer(base::MakeUnique<ui::Layer>()); |
layer()->set_delegate(this); |
layer()->set_name(GetClassName()); |