Index: ui/aura_shell/modal_container_layout_manager.cc |
diff --git a/ui/aura_shell/modal_container_layout_manager.cc b/ui/aura_shell/modal_container_layout_manager.cc |
index 4a42db2c1564aa00cdcc86f8b1296a3aa679d69d..a806947f2bb5a1b6a759f7d81238fb100eabf2b4 100644 |
--- a/ui/aura_shell/modal_container_layout_manager.cc |
+++ b/ui/aura_shell/modal_container_layout_manager.cc |
@@ -135,7 +135,7 @@ bool ModalContainerLayoutManager::CanWindowReceiveEvents( |
void ModalContainerLayoutManager::AddModalWindow(aura::Window* window) { |
modal_windows_.push_back(window); |
CreateModalScreen(); |
- container_->MoveChildToFront(window); |
+ container_->StackChildAtTop(window); |
window->Activate(); |
} |
@@ -172,7 +172,7 @@ void ModalContainerLayoutManager::CreateModalScreen() { |
modal_screen_->GetNativeView()->layer()->GetAnimator()); |
modal_screen_->Show(); |
modal_screen_->GetNativeView()->layer()->SetOpacity(0.5f); |
- container_->MoveChildToFront(modal_screen_->GetNativeView()); |
+ container_->StackChildAtTop(modal_screen_->GetNativeView()); |
} |
void ModalContainerLayoutManager::DestroyModalScreen() { |