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

Unified Diff: chrome/browser/ui/views/link_disambiguation/link_disambiguation_popup.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
Index: chrome/browser/ui/views/link_disambiguation/link_disambiguation_popup.cc
diff --git a/chrome/browser/ui/views/link_disambiguation/link_disambiguation_popup.cc b/chrome/browser/ui/views/link_disambiguation/link_disambiguation_popup.cc
index 50104f9f2247ecf2bdf1ad2b6216135923dbc88b..ba8b98f00895745678c6360ebcba99e3b6e07908 100644
--- a/chrome/browser/ui/views/link_disambiguation/link_disambiguation_popup.cc
+++ b/chrome/browser/ui/views/link_disambiguation/link_disambiguation_popup.cc
@@ -185,7 +185,7 @@ void LinkDisambiguationPopup::Show(
zoomed_bitmap.width(),
zoomed_bitmap.height());
const gfx::Display display =
- gfx::Screen::GetScreenFor(content)->GetDisplayNearestWindow(content);
+ gfx::Screen::GetScreen()->GetDisplayNearestWindow(content);
window_bounds.AdjustToFit(display.work_area());
view_->GetWidget()->SetBounds(window_bounds);
view_->GetWidget()->Show();

Powered by Google App Engine
This is Rietveld 408576698