Index: ash/content/keyboard_overlay/keyboard_overlay_delegate.cc |
diff --git a/ash/content/keyboard_overlay/keyboard_overlay_delegate.cc b/ash/content/keyboard_overlay/keyboard_overlay_delegate.cc |
index 91f299a6809c5fe8b2199928618aa100d4c37352..fe0a5c349c1e6da0b58df23c568d79058be0859f 100644 |
--- a/ash/content/keyboard_overlay/keyboard_overlay_delegate.cc |
+++ b/ash/content/keyboard_overlay/keyboard_overlay_delegate.cc |
@@ -77,7 +77,7 @@ views::Widget* KeyboardOverlayDelegate::Show(views::WebDialogView* view) { |
gfx::Size size; |
GetDialogSize(&size); |
const gfx::Rect& rect = |
- Shell::GetScreen() |
+ gfx::Screen::GetScreen() |
->GetDisplayNearestWindow(widget_->GetNativeView()) |
.work_area(); |
gfx::Rect bounds(rect.x() + (rect.width() - size.width()) / 2, |
@@ -108,7 +108,7 @@ void KeyboardOverlayDelegate::GetWebUIMessageHandlers( |
void KeyboardOverlayDelegate::GetDialogSize(gfx::Size* size) const { |
using std::min; |
DCHECK(widget_); |
- gfx::Rect rect = ash::Shell::GetScreen() |
+ gfx::Rect rect = gfx::Screen::GetScreen() |
->GetDisplayNearestWindow(widget_->GetNativeView()) |
.work_area(); |
const int width = min(kBaseWidth, rect.width() - kHorizontalMargin); |