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

Unified Diff: ui/aura/window.cc

Issue 2470963002: Makes it possible for clients to directly create WindowTreeHostMus (Closed)
Patch Set: nuke comment Created 4 years, 1 month 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
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/aura/window_port.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 9a901b2ddcfee16d60a564766e3c5e5a3dcfedbd..67fd26292ac06772170f1c14063572300cd25d0f 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -144,13 +144,12 @@ void Window::Init(ui::LayerType layer_type) {
port_ = port_owner_.get();
}
SetLayer(base::MakeUnique<ui::Layer>(layer_type));
- std::unique_ptr<WindowPortInitData> init_data = port_->OnPreInit(this);
+ port_->OnPreInit(this);
layer()->SetVisible(false);
layer()->set_delegate(this);
UpdateLayerName();
layer()->SetFillsBoundsOpaquely(!transparent_);
Env::GetInstance()->NotifyWindowInitialized(this);
- port_->OnPostInit(std::move(init_data));
}
void Window::SetType(ui::wm::WindowType type) {
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/aura/window_port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698