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

Unified Diff: ui/base/win/dpi_setup.cc

Issue 271543009: Send the device scale factor from Windows 8 ASH during initialization via the MetroViewerHostMsg_Se… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed tabs 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/aura/remote_window_tree_host_win.cc ('k') | ui/gfx/win/dpi.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/aura/remote_window_tree_host_win.cc ('k') | ui/gfx/win/dpi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698