| Index: ash/wm/system_modal_container_layout_manager.cc
|
| diff --git a/ash/wm/system_modal_container_layout_manager.cc b/ash/wm/system_modal_container_layout_manager.cc
|
| index c763bc993ca143d8254bf6747a08261ff0cc638b..0f8a2117f1a05ef8b2a5f7a527a61148abba7144 100644
|
| --- a/ash/wm/system_modal_container_layout_manager.cc
|
| +++ b/ash/wm/system_modal_container_layout_manager.cc
|
| @@ -74,7 +74,8 @@ void SystemModalContainerLayoutManager::OnWindowResized() {
|
| if (modal_background_) {
|
| // Note: we have to set the entire bounds with the screen offset.
|
| modal_background_->SetBounds(
|
| - gfx::Screen::GetDisplayNearestWindow(container_).bounds());
|
| + Shell::GetAshScreen()->GetDisplayNearestWindow(
|
| + container_).bounds());
|
| }
|
| if (!modal_windows_.empty()) {
|
| aura::Window::Windows::iterator it = modal_windows_.begin();
|
| @@ -166,7 +167,8 @@ void SystemModalContainerLayoutManager::CreateModalBackground() {
|
| modal_background_ = new views::Widget;
|
| views::Widget::InitParams params(views::Widget::InitParams::TYPE_CONTROL);
|
| params.parent = container_;
|
| - params.bounds = gfx::Screen::GetDisplayNearestWindow(container_).bounds();
|
| + params.bounds = Shell::GetAshScreen()->GetDisplayNearestWindow(
|
| + container_).bounds();
|
| modal_background_->Init(params);
|
| modal_background_->GetNativeView()->SetName(
|
| "SystemModalContainerLayoutManager.ModalBackground");
|
|
|