diff options
author | hbono@google.com <hbono@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-14 10:13:14 +0000 |
---|---|---|
committer | hbono@google.com <hbono@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-14 10:13:14 +0000 |
commit | 8e0b4a087506b2a9a3c4541489d442fd36eaf976 (patch) | |
tree | 90cab20fe99f866313c9943dbfa82f057836ca8d /chrome/browser/browser_init.cc | |
parent | a363a84f1e52b958d0aa04d2d5554b5f949908cc (diff) | |
download | chromium_src-8e0b4a087506b2a9a3c4541489d442fd36eaf976.zip chromium_src-8e0b4a087506b2a9a3c4541489d442fd36eaf976.tar.gz chromium_src-8e0b4a087506b2a9a3c4541489d442fd36eaf976.tar.bz2 |
Revert 52446 - Supports High DPI mode.
This change caused too many layout problems; such as Issue 50100 and 51562. I would like to revert this change now and send another change when I fix them.
When launching an application on the text size larger than 120 DPI, Windows runs the application on the DPI-virtualization mode to hide the text size from it. Unfortunately, this virtualization mode causes some problems when using a custom frame, such as we cannot click system buttons. To fix this issue, this change disables the DPI-virtualization mode on Vista or later.
BUG=1715,36939
TEST=Run chrome.exe on the screen resolution higher than 120 DPI.
Review URL: http://codereview.chromium.org/2867031
TBR=hbono@chromium.org
Review URL: http://codereview.chromium.org/3435002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59353 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_init.cc')
-rw-r--r-- | chrome/browser/browser_init.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc index 1d404b2..04bd685 100644 --- a/chrome/browser/browser_init.cc +++ b/chrome/browser/browser_init.cc @@ -372,13 +372,6 @@ bool BrowserInit::LaunchBrowser(const CommandLine& command_line, in_startup = process_startup; DCHECK(profile); -#if defined(OS_WIN) - // Disable the DPI-virtualization mode of Windows Vista or later because it - // causes some problems when using system messages (such as WM_NCHITTEST and - // WM_GETTITLEBARINFOEX) on a custom frame. - win_util::CallSetProcessDPIAware(); -#endif - // Continue with the off-the-record profile from here on if --incognito if (command_line.HasSwitch(switches::kIncognito)) profile = profile->GetOffTheRecordProfile(); |