Index: ui/base/layout.cc |
diff --git a/ui/base/layout.cc b/ui/base/layout.cc |
index f4ebc0162c5e53824b788be9872eb31b3ab6ba98..1a6cc5df8ce1ab27774f635a20a86954d38b7b71 100644 |
--- a/ui/base/layout.cc |
+++ b/ui/base/layout.cc |
@@ -115,7 +115,7 @@ ScopedSetSupportedScaleFactors::~ScopedSetSupportedScaleFactors() { |
#if !defined(OS_MACOSX) |
float GetScaleFactorForNativeView(gfx::NativeView view) { |
- gfx::Screen* screen = gfx::Screen::GetScreenFor(view); |
+ gfx::Screen* screen = gfx::Screen::GetScreen(); |
gfx::Display display = screen->GetDisplayNearestWindow(view); |
oshima
2016/01/19 20:44:31
single line?
scottmg
2016/01/19 21:55:57
Done.
|
return display.device_scale_factor(); |
} |