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

Unified Diff: ash/display/display_info.cc

Issue 672673005: Remove IsHighDPIEnabled, move EnableHighDPISupport to only place it's used (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dpi-cleanup-5
Patch Set: rebase-6 Created 6 years, 2 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
« no previous file with comments | « no previous file | chrome/app/chrome_exe_main_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_info.cc
diff --git a/ash/display/display_info.cc b/ash/display/display_info.cc
index 16a31f243e23494d75442e1fc9b9b790feab3984..866f49dc84402ea8be6cfdd2657cc4f48673d382 100644
--- a/ash/display/display_info.cc
+++ b/ash/display/display_info.cc
@@ -149,9 +149,7 @@ DisplayInfo DisplayInfo::CreateFromSpecWithID(const std::string& spec,
float device_scale_factor = 1.0f;
if (!GetDisplayBounds(main_spec, &bounds_in_native, &device_scale_factor)) {
#if defined(OS_WIN)
- if (gfx::IsHighDPIEnabled()) {
- device_scale_factor = gfx::GetDPIScale();
- }
+ device_scale_factor = gfx::GetDPIScale();
#endif
}
« no previous file with comments | « no previous file | chrome/app/chrome_exe_main_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698