| Index: ui/views/widget/desktop_aura/desktop_screen_x11.cc
|
| diff --git a/ui/views/widget/desktop_aura/desktop_screen_x11.cc b/ui/views/widget/desktop_aura/desktop_screen_x11.cc
|
| index d3d2315bce9cb981ed62c4ab33d61c80d3616150..9c5906f5a3089513045f799612ecc05bedac621a 100644
|
| --- a/ui/views/widget/desktop_aura/desktop_screen_x11.cc
|
| +++ b/ui/views/widget/desktop_aura/desktop_screen_x11.cc
|
| @@ -271,11 +271,10 @@ uint32_t DesktopScreenX11::DispatchEvent(const ui::PlatformEvent& event) {
|
| return ui::POST_DISPATCH_NONE;
|
| }
|
|
|
| -// static
|
| -void DesktopScreenX11::UpdateDeviceScaleFactorForTest() {
|
| - DesktopScreenX11* screen =
|
| - static_cast<DesktopScreenX11*>(display::Screen::GetScreen());
|
| - screen->ConfigureTimerFired();
|
| +void DesktopScreenX11::SetDeviceScaleFactorForTest(float scale_factor) {
|
| + LOG(ERROR) << "SetDSF:" << scale_factor;
|
| + display::Display::SetForceDeviceScaleFactorForTesting(scale_factor);
|
| + ConfigureTimerFired();
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|