Index: ui/base/win/dpi_setup.cc |
diff --git a/ui/base/win/dpi_setup.cc b/ui/base/win/dpi_setup.cc |
index 39bf185180a387421c2602dc59b12b71f27ed2f7..423b788132ac0a3cd5153fd6625d4e6b3b0d20f7 100644 |
--- a/ui/base/win/dpi_setup.cc |
+++ b/ui/base/win/dpi_setup.cc |
@@ -13,15 +13,7 @@ namespace ui { |
namespace win { |
void InitDeviceScaleFactor() { |
- float scale = 1.0; |
- if (CommandLine::ForCurrentProcess()->HasSwitch("silent-launch")) { |
- if (gfx::IsHighDPIEnabled()) |
- scale = gfx::GetModernUIScale(); |
- } |
- else { |
- scale = gfx::GetDPIScale(); |
- } |
- gfx::InitDeviceScaleFactor(scale); |
+ gfx::InitDeviceScaleFactor(gfx::GetDPIScale()); |
} |
} // namespace win |