Index: components/constrained_window/constrained_window_views.cc |
diff --git a/components/constrained_window/constrained_window_views.cc b/components/constrained_window/constrained_window_views.cc |
index e493eaa708550c21c7901c251cf679adb48e05c5..37de79c84e03281a1e200c195a8ea42fe8bc9850 100644 |
--- a/components/constrained_window/constrained_window_views.cc |
+++ b/components/constrained_window/constrained_window_views.cc |
@@ -117,7 +117,7 @@ void UpdateModalDialogPosition(views::Widget* widget, |
// with any display clamp its position to be fully on the nearest display. |
gfx::Rect display_rect = gfx::Rect(position, size); |
const display::Display display = |
- display::Screen::GetScreen()->GetDisplayNearestWindow( |
+ display::Screen::GetScreen()->GetDisplayNearestView( |
dialog_host->GetHostView()); |
const gfx::Rect work_area = display.work_area(); |
if (!work_area.Contains(display_rect)) |