summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_init.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser_init.cc')
-rw-r--r--chrome/browser/browser_init.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc
index 495ce1c..9c72ceb 100644
--- a/chrome/browser/browser_init.cc
+++ b/chrome/browser/browser_init.cc
@@ -387,6 +387,13 @@ bool BrowserInit::LaunchBrowser(
chromeos::InitialTabNotificationObserver::Get();
#endif
+#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();