Index: ui/message_center/views/toast_contents_view.cc |
diff --git a/ui/message_center/views/toast_contents_view.cc b/ui/message_center/views/toast_contents_view.cc |
index 44dfcf410fee001e14df3c944e6540386a7398d4..fc332c2098db8016b79695026159f372c33f1491 100644 |
--- a/ui/message_center/views/toast_contents_view.cc |
+++ b/ui/message_center/views/toast_contents_view.cc |
@@ -262,7 +262,7 @@ void ToastContentsView::OnDisplayChanged() { |
return; |
collection_->OnDisplayMetricsChanged( |
- Screen::GetScreen()->GetDisplayNearestWindow(native_view)); |
+ Screen::GetScreen()->GetDisplayNearestView(native_view)); |
} |
void ToastContentsView::OnWorkAreaChanged() { |
@@ -275,7 +275,7 @@ void ToastContentsView::OnWorkAreaChanged() { |
return; |
collection_->OnDisplayMetricsChanged( |
- Screen::GetScreen()->GetDisplayNearestWindow(native_view)); |
+ Screen::GetScreen()->GetDisplayNearestView(native_view)); |
} |
// views::View |