Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: ui/base/layout.cc

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: GetNativeScreen Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698