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

Unified Diff: ui/gfx/win/dpi.cc

Issue 232483005: Enable --high-dpi-support by default. Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Disabling broken unit tests. (Don't submit this code!) Created 6 years, 7 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 | « ui/gfx/switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/win/dpi.cc
diff --git a/ui/gfx/win/dpi.cc b/ui/gfx/win/dpi.cc
index 374a2058e140a4c9b5345c988daf3ed4599e9076..6ca65d11e73f3c7ae186806928af43b6d67ce9e9 100644
--- a/ui/gfx/win/dpi.cc
+++ b/ui/gfx/win/dpi.cc
@@ -145,7 +145,6 @@ float GetDPIScale() {
}
void ForceHighDPISupportForTesting(float scale) {
- force_highdpi_for_testing = true;
g_device_scale_factor = scale;
}
@@ -155,8 +154,8 @@ bool IsHighDPIEnabled() {
// Default is disabled.
static DWORD value = ReadRegistryValue(
HKEY_CURRENT_USER, kRegistryProfilePath,
- kHighDPISupportW, FALSE);
- return force_highdpi_for_testing || (value == 1);
+ kHighDPISupportW, TRUE);
+ return value != 0;
}
bool IsInHighDPIMode() {
« no previous file with comments | « ui/gfx/switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698