Index: chrome/browser/ui/views/tabs/tab_drag_controller.cc |
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller.cc b/chrome/browser/ui/views/tabs/tab_drag_controller.cc |
index 86caeb454633555522266937e5ff2bd6c511f0e3..63588995806b246cc7b45e65d2729dd7de0668e4 100644 |
--- a/chrome/browser/ui/views/tabs/tab_drag_controller.cc |
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller.cc |
@@ -671,7 +671,8 @@ gfx::Point TabDragController::GetWindowCreatePoint( |
// 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::GetDisplayNearestPoint(origin).work_area(); |
+ gfx::Rect work_area = gfx::Screen::GetDisplayNearestPoint( |
+ gfx::Screen::BadTwoWorldsContext(), origin).work_area(); |
gfx::Point create_point(origin); |
if (!work_area.IsEmpty()) { |
if (create_point.x() < work_area.x()) |
@@ -1983,7 +1984,7 @@ gfx::Point TabDragController::GetCursorScreenPoint() { |
return touch_point; |
} |
#endif |
- return gfx::Screen::GetCursorScreenPoint(); |
+ return gfx::Screen::GetCursorScreenPoint(gfx::Screen::BadTwoWorldsContext()); |
} |
gfx::Point TabDragController::GetWindowOffset( |