| Index: chrome/browser/ui/views/tabs/tab_drag_controller2.cc
|
| diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller2.cc b/chrome/browser/ui/views/tabs/tab_drag_controller2.cc
|
| index a664f83e026fd3509be76f471b9a8c637ebec672..05bb2d2a4e50ce7fa479e10c636b004af6ba6e74 100644
|
| --- a/chrome/browser/ui/views/tabs/tab_drag_controller2.cc
|
| +++ b/chrome/browser/ui/views/tabs/tab_drag_controller2.cc
|
| @@ -502,8 +502,8 @@ gfx::Point TabDragController2::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());
|
|
|