Index: ui/views/win/hwnd_message_handler.cc |
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc |
index 7d4857d309c9f5d6215929aeacaa35a42450ed7b..78fa8ab8d8647e3e6d3ca57d2ce0f4a07a562147 100644 |
--- a/ui/views/win/hwnd_message_handler.cc |
+++ b/ui/views/win/hwnd_message_handler.cc |
@@ -32,7 +32,6 @@ |
#include "ui/gfx/path_win.h" |
#include "ui/gfx/screen.h" |
#include "ui/gfx/win/direct_manipulation.h" |
-#include "ui/gfx/win/dpi.h" |
#include "ui/gfx/win/hwnd_util.h" |
#include "ui/native_theme/native_theme_win.h" |
#include "ui/views/views_delegate.h" |
@@ -1371,8 +1370,8 @@ void HWNDMessageHandler::OnGetMinMaxInfo(MINMAXINFO* minmax_info) { |
gfx::Size min_window_size; |
gfx::Size max_window_size; |
delegate_->GetMinMaxSize(&min_window_size, &max_window_size); |
- min_window_size = gfx::win::DIPToScreenSize(min_window_size); |
- max_window_size = gfx::win::DIPToScreenSize(max_window_size); |
+ min_window_size = delegate_->DIPToScreenSize(min_window_size); |
+ max_window_size = delegate_->DIPToScreenSize(max_window_size); |
// Add the native frame border size to the minimum and maximum size if the |