Commit 4295349b authored by Will Harris's avatar Will Harris Committed by Commit Bot

Enable DPI awareness for util_win service process showing file dialog.

Since https://crrev.com/c/1912502 only enabled DPI awareness for
browser process, this meant utility process showing system UI
was not running at correct DPI.

This adds an explicit call to EnableHighDPISupport in the mojo
IPC to display a file dialog.

BUG=1049324
TEST=Enable high DPI. Load Chrome and push Ctrl-O. Dialog should be shown in High DPI and not blurry.

Change-Id: Ica591e65ba25f3c45485f6676c26436f0d3eb57c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2042744Reviewed-by: default avatarPatrick Monette <pmonette@chromium.org>
Commit-Queue: Will Harris <wfh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#739176}
parent dc854e26
...@@ -239,6 +239,8 @@ void UtilWinImpl::CallExecuteSelectFile( ...@@ -239,6 +239,8 @@ void UtilWinImpl::CallExecuteSelectFile(
CallExecuteSelectFileCallback callback) { CallExecuteSelectFileCallback callback) {
base::win::ScopedCOMInitializer scoped_com_initializer; base::win::ScopedCOMInitializer scoped_com_initializer;
base::win::EnableHighDPISupport();
ui::ExecuteSelectFile( ui::ExecuteSelectFile(
type, title, default_path, filter, file_type_index, default_extension, type, title, default_path, filter, file_type_index, default_extension,
reinterpret_cast<HWND>(base::win::Uint32ToHandle(owner)), reinterpret_cast<HWND>(base::win::Uint32ToHandle(owner)),
......
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