Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Unified Diff: ui/aura/window.cc

Issue 2383263002: Generalize layer mirroring for phantom windows (Closed)
Patch Set: Revert layer renaming Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698