Index: ui/views/controls/menu/menu_separator_win.cc |
diff --git a/ui/views/controls/menu/menu_separator_win.cc b/ui/views/controls/menu/menu_separator_win.cc |
index 182cc2b3294aa403bc06057e2673943270a433ad..2ecabdbeb1c30056d49da57d03ea94d0db9ff6e0 100644 |
--- a/ui/views/controls/menu/menu_separator_win.cc |
+++ b/ui/views/controls/menu/menu_separator_win.cc |
@@ -8,9 +8,9 @@ |
#include <uxtheme.h> |
#include <Vssym32.h> |
+#include "ui/display/win/dpi.h" |
#include "ui/gfx/canvas.h" |
#include "ui/gfx/geometry/rect.h" |
-#include "ui/gfx/win/dpi.h" |
#include "ui/native_theme/native_theme.h" |
#include "ui/native_theme/native_theme_aura.h" |
#include "ui/views/controls/menu/menu_item_view.h" |
@@ -29,7 +29,7 @@ void MenuSeparator::OnPaint(gfx::Canvas* canvas) { |
// Hack to get the separator to display correctly on Windows where we may |
// have fractional scales. We move the separator 1 pixel down to ensure that |
// it falls within the clipping rect which is scaled up. |
- float device_scale = gfx::GetDPIScale(); |
+ float device_scale = display::win::GetDPIScale(); |
bool is_fractional_scale = |
(device_scale - static_cast<int>(device_scale) != 0); |
if (is_fractional_scale && separator_bounds.y() == 0) |