Index: chrome/browser/ui/views/tabs/window_finder_x11.cc |
diff --git a/chrome/browser/ui/views/tabs/window_finder_x11.cc b/chrome/browser/ui/views/tabs/window_finder_x11.cc |
index 18c9c025b5f94dd9a5ff2daf1fb9e9210a987839..313f412b18ae89e3e5e4cc68dea74c552bc1344c 100644 |
--- a/chrome/browser/ui/views/tabs/window_finder_x11.cc |
+++ b/chrome/browser/ui/views/tabs/window_finder_x11.cc |
@@ -11,8 +11,7 @@ |
namespace { |
float GetDeviceScaleFactor() { |
- gfx::Display display = gfx::Screen::GetNativeScreen()->GetPrimaryDisplay(); |
- return display.device_scale_factor(); |
+ return gfx::Screen::GetScreen()->GetPrimaryDisplay().device_scale_factor(); |
} |
gfx::Point DIPToPixelPoint(const gfx::Point& dip_point) { |