Index: chrome/browser/ui/views/tabs/default_tab_drag_controller.cc |
diff --git a/chrome/browser/ui/views/tabs/default_tab_drag_controller.cc b/chrome/browser/ui/views/tabs/default_tab_drag_controller.cc |
index 93ca571c12bcd94b992945a30f24684abe23cbd7..1d2b51ea9ebcc5e7a45ddd5e55cb939d3e52962d 100644 |
--- a/chrome/browser/ui/views/tabs/default_tab_drag_controller.cc |
+++ b/chrome/browser/ui/views/tabs/default_tab_drag_controller.cc |
@@ -564,8 +564,8 @@ gfx::Point DefaultTabDragController::GetWindowCreatePoint() const { |
} |
// If the cursor is outside the monitor area, move it inside. For example, |
// dropping a tab onto the task bar on Windows produces this situation. |
- gfx::Rect work_area = gfx::Screen::GetMonitorWorkAreaNearestPoint( |
- cursor_point); |
+ gfx::Rect work_area = gfx::Screen::GetMonitorNearestPoint( |
+ cursor_point).work_area(); |
if (!work_area.IsEmpty()) { |
if (cursor_point.x() < work_area.x()) |
cursor_point.set_x(work_area.x()); |