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

Unified Diff: content/app/content_main_runner.cc

Issue 672583003: remove ui/base/win/dpi_setup.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dpi-cleanup-2
Patch Set: rebase-3 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 | ui/base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/content_main_runner.cc
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index 8ebce62667a619dbf346a0c783c974dc1d1da234..9031eefc15c0a95b99f1391e9fd2cbff762f580f 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -78,7 +78,6 @@
#include "base/strings/string_number_conversions.h"
#include "ui/base/win/atl_module.h"
-#include "ui/base/win/dpi_setup.h"
#include "ui/gfx/win/dpi.h"
#elif defined(OS_MACOSX)
#include "base/mac/scoped_nsautorelease_pool.h"
@@ -634,7 +633,7 @@ class ContentMainRunnerImpl : public ContentMainRunner {
}
}
if (init_device_scale_factor)
- ui::win::InitDeviceScaleFactor();
+ gfx::InitDeviceScaleFactor(gfx::GetDPIScale());
#endif
if (!GetContentClient())
« no previous file with comments | « no previous file | ui/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698