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

Unified Diff: ui/aura/window_tree_host.cc

Issue 2567293004: Makes WindowTreeHost::InitHost() not Show the window (Closed)
Patch Set: WTF::Show shows window Created 4 years 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_tree_host.cc
diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc
index c0baf2d340be172b9f9c303620a0b5d23dc4a30d..e4053151b0ebd0ba969701b160ebb8b42816c2a6 100644
--- a/ui/aura/window_tree_host.cc
+++ b/ui/aura/window_tree_host.cc
@@ -63,7 +63,6 @@ void WindowTreeHost::InitHost() {
InitCompositor();
UpdateRootWindowSizeInPixels(GetBoundsInPixels().size());
Env::GetInstance()->NotifyHostInitialized(this);
- window()->Show();
}
void WindowTreeHost::AddObserver(WindowTreeHostObserver* observer) {
@@ -207,6 +206,7 @@ void WindowTreeHost::Show() {
DCHECK_EQ(compositor()->root_layer(), window()->layer());
compositor()->SetVisible(true);
ShowImpl();
+ window()->Show();
}
void WindowTreeHost::Hide() {

Powered by Google App Engine
This is Rietveld 408576698