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 0cacffe4a76dfdde167943bf1f232f87736b9a76..34b827c91fdd61a817d1498b9c4d7d5e849b9699 100644 |
--- a/ui/views/win/hwnd_message_handler.cc |
+++ b/ui/views/win/hwnd_message_handler.cc |
@@ -35,7 +35,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" |
@@ -1389,8 +1388,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 |