Commit c199fae6 authored by sail@chromium.org's avatar sail@chromium.org

Metro/HiDPI: Mark Chrome as HiDPI aware on Windows

With this CL Chrome is marked as HiDPI aware if the enable_hidpi build flag is set.

BUG=114311
TEST=Changed Windows to 2x DPI scale. Ran Chrome. Verified that 2x icons were used.

Review URL: http://codereview.chromium.org/10086009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133826 0039d316-1c4b-4281-b951-d872f2087c98
parent a9aaa9d1
......@@ -34,6 +34,7 @@
#include "sandbox/src/sandbox_types.h"
#include "ui/base/ui_base_switches.h"
#include "ui/base/ui_base_paths.h"
#include "ui/base/win/dpi.h"
#include "webkit/glue/webkit_glue.h"
#if defined(OS_WIN)
......@@ -420,6 +421,9 @@ class ContentMainRunnerImpl : public content::ContentMainRunner {
SendTaskPortToParentProcess();
}
#elif defined(OS_WIN)
#if defined(ENABLE_HIDPI)
ui::EnableHighDPISupport();
#endif
content::SetupCRT(command_line);
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment