| Index: ui/aura/window_tree_host.cc
|
| diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc
|
| index 87fac84f1cfdfdd5241b829cdd23697b119055f6..a1bac9be53163090c41ee54d31644ad12ae785ce 100644
|
| --- a/ui/aura/window_tree_host.cc
|
| +++ b/ui/aura/window_tree_host.cc
|
| @@ -209,8 +209,11 @@ ui::EventDispatchDetails WindowTreeHost::DispatchKeyEventPostIME(
|
| }
|
|
|
| void WindowTreeHost::Show() {
|
| - if (compositor())
|
| - compositor()->SetVisible(true);
|
| + // Ensure that compositor has been properly initialized, see InitCompositor()
|
| + // and InitHost().
|
| + DCHECK(compositor());
|
| + DCHECK_EQ(compositor()->root_layer(), window()->layer());
|
| + compositor()->SetVisible(true);
|
| ShowImpl();
|
| }
|
|
|
|
|