| Index: ui/views/drag_utils.cc
|
| diff --git a/ui/views/drag_utils.cc b/ui/views/drag_utils.cc
|
| index b88e5c1aa8ab7891f9e72ae5bb563cf902bcc4ea..50cf583d0a8fcc5f6b2d887b7d8a909784db692f 100644
|
| --- a/ui/views/drag_utils.cc
|
| +++ b/ui/views/drag_utils.cc
|
| @@ -29,8 +29,9 @@ ui::ScaleFactor GetDeviceScaleFactorForNativeView(views::Widget* widget) {
|
| // yet care about device scale factor on other platforms. So to keep drag and
|
| // drop behavior on other platforms un-touched, we wrap this in the #if guard.
|
| if (widget && widget->GetNativeView()) {
|
| - gfx::Display display = gfx::Screen::GetDisplayNearestWindow(
|
| - widget->GetNativeView());
|
| + gfx::NativeView view = widget->GetNativeView();
|
| + gfx::Display display = gfx::Screen::GetScreenFor(view)->
|
| + GetDisplayNearestWindow(view);
|
| device_scale_factor = ui::GetScaleFactorFromScale(
|
| display.device_scale_factor());
|
| }
|
|
|