-
Sarthak Shah authored
Currently, if experimental fling animation feature is turned on, FlingControllerTest fails with an exception as ScreenWin::GetPixelsPerInch() returns zero. As there is no display instantiated while running FlingController unittest, GetScreenWinDisplayNearestDIPPoint returns default ScreenWin object which has zero value for pixels per inch. This CL fixes the issue by return default value if the value of pixels per inch from ScreenWinDisplay is zero. Change-Id: I9cd7aa2ccfd62fa1896981f09a2dd4a336e49469 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1974620Reviewed-by:
Robert Liao <robliao@chromium.org> Reviewed-by:
Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by:
Daniel Libby <dlibby@microsoft.com> Reviewed-by:
David Bokan <bokan@chromium.org> Commit-Queue: Robert Liao <robliao@chromium.org> Cr-Commit-Position: refs/heads/master@{#734692}
44ca1064