Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Unified Diff: ui/message_center/views/toast_contents_view.cc

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: and another rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/screen_unittest.cc ('k') | ui/mojo/init/ui_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a11b3b9874c323e548db4264279e9995771b0aa9..fd2cb46a50d74e16e8e609a7616cfc379d3d89b5 100644
--- a/ui/message_center/views/toast_contents_view.cc
+++ b/ui/message_center/views/toast_contents_view.cc
@@ -250,7 +250,7 @@ void ToastContentsView::OnDisplayChanged() {
return;
collection_->OnDisplayMetricsChanged(
- Screen::GetScreenFor(native_view)->GetDisplayNearestWindow(native_view));
+ Screen::GetScreen()->GetDisplayNearestWindow(native_view));
}
void ToastContentsView::OnWorkAreaChanged() {
@@ -263,7 +263,7 @@ void ToastContentsView::OnWorkAreaChanged() {
return;
collection_->OnDisplayMetricsChanged(
- Screen::GetScreenFor(native_view)->GetDisplayNearestWindow(native_view));
+ Screen::GetScreen()->GetDisplayNearestWindow(native_view));
}
// views::View
« no previous file with comments | « ui/gfx/screen_unittest.cc ('k') | ui/mojo/init/ui_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698