| Index: ui/views/drag_utils.cc
|
| diff --git a/ui/views/drag_utils.cc b/ui/views/drag_utils.cc
|
| index 2597bf2936bc47ddcabfd0214ff6a5d80f657e0e..3c35842f073f8b67d874a97a990fb7a98ca24502 100644
|
| --- a/ui/views/drag_utils.cc
|
| +++ b/ui/views/drag_utils.cc
|
| @@ -19,8 +19,8 @@ float GetDeviceScaleForNativeView(views::Widget* widget) {
|
| // drop behavior on other platforms un-touched, we wrap this in the #if guard.
|
| if (widget && widget->GetNativeView()) {
|
| gfx::NativeView view = widget->GetNativeView();
|
| - gfx::Display display = gfx::Screen::GetScreenFor(view)->
|
| - GetDisplayNearestWindow(view);
|
| + gfx::Display display =
|
| + gfx::Screen::GetScreen()->GetDisplayNearestWindow(view);
|
| device_scale = display.device_scale_factor();
|
| }
|
| return device_scale;
|
|
|