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

Unified Diff: ash/system/web_notification/ash_popup_alignment_delegate_unittest.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/ash_popup_alignment_delegate_unittest.cc
diff --git a/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc b/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc
index 9884e4b19fe93a93b2184e7a742b687983114947..29ade180a7c73d0c8637469507f69bc15686859e 100644
--- a/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc
+++ b/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc
@@ -60,7 +60,7 @@ class AshPopupAlignmentDelegateTest : public test::AshTestBase {
void UpdateWorkArea(AshPopupAlignmentDelegate* alignment_delegate,
const gfx::Display& display) {
- alignment_delegate->StartObserving(Shell::GetScreen(), display);
+ alignment_delegate->StartObserving(gfx::Screen::GetScreen(), display);
// Update the layout
alignment_delegate->OnDisplayWorkAreaInsetsChanged();
}
@@ -72,12 +72,12 @@ class AshPopupAlignmentDelegateTest : public test::AshTestBase {
}
alignment_delegate_ = std::move(delegate);
UpdateWorkArea(alignment_delegate_.get(),
- Shell::GetScreen()->GetPrimaryDisplay());
+ gfx::Screen::GetScreen()->GetPrimaryDisplay());
}
Position GetPositionInDisplay(const gfx::Point& point) {
const gfx::Rect& work_area =
- Shell::GetScreen()->GetPrimaryDisplay().work_area();
+ gfx::Screen::GetScreen()->GetPrimaryDisplay().work_area();
const gfx::Point center_point = work_area.CenterPoint();
if (work_area.x() > point.x() || work_area.y() > point.y() ||
work_area.right() < point.x() || work_area.bottom() < point.y()) {
« no previous file with comments | « ash/system/web_notification/ash_popup_alignment_delegate.cc ('k') | ash/system/web_notification/web_notification_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698