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() { |