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

Unified Diff: ash/system/web_notification/web_notification_tray.cc

Issue 1608053002: Remove now-unnecessary wrappers around gfx::Screen::GetScreen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-5
Patch Set: cros 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
Index: ash/system/web_notification/web_notification_tray.cc
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc
index a2d70a3720d51347b92904d9f2c51ecc0ecda124..4b3c0b564c36a5a82e08dce2fd3372d94f07ea4a 100644
--- a/ash/system/web_notification/web_notification_tray.cc
+++ b/ash/system/web_notification/web_notification_tray.cc
@@ -189,9 +189,10 @@ WebNotificationTray::WebNotificationTray(StatusAreaWidget* status_area_widget)
message_center(),
message_center_tray_.get(),
popup_alignment_delegate_.get()));
- const gfx::Display& display = Shell::GetScreen()->GetDisplayNearestWindow(
- status_area_widget->GetNativeView());
- popup_alignment_delegate_->StartObserving(Shell::GetScreen(), display);
+ const gfx::Display& display =
+ gfx::Screen::GetScreen()->GetDisplayNearestWindow(
+ status_area_widget->GetNativeView());
+ popup_alignment_delegate_->StartObserving(gfx::Screen::GetScreen(), display);
OnMessageCenterTrayChanged();
}

Powered by Google App Engine
This is Rietveld 408576698