Index: chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc |
diff --git a/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc b/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc |
index 4d125beb00cd3204defc78398d68e74e4cfce1bc..abb69eaa2c86729896c6f30d640970b78fc57c44 100644 |
--- a/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc |
+++ b/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc |
@@ -56,7 +56,7 @@ const char kOnTextInputTypeChanged[] = |
// The default position of the keyboard widget should be at the bottom, |
// spanning the entire width of the root window. |
gfx::Rect GetKeyboardPosition(int height) { |
- gfx::Rect area = gfx::Screen::GetMonitorAreaNearestPoint(gfx::Point()); |
+ gfx::Rect area = gfx::Screen::GetPrimaryMonitor().bounds(); |
return gfx::Rect(area.x(), area.y() + area.height() - height, |
area.width(), height); |
} |