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

Unified Diff: chrome/browser/ui/views/extensions/extension_dialog.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/extensions/extension_dialog.cc
diff --git a/chrome/browser/ui/views/extensions/extension_dialog.cc b/chrome/browser/ui/views/extensions/extension_dialog.cc
index 51c8d6ec6c1b8200e0f67581ef10e1d7675d5236..36b883b2d27202a02212bf3e53fcc0379c0b3c83 100644
--- a/chrome/browser/ui/views/extensions/extension_dialog.cc
+++ b/chrome/browser/ui/views/extensions/extension_dialog.cc
@@ -110,8 +110,7 @@ void ExtensionDialog::InitWindow(gfx::NativeWindow parent,
// Ensure the top left and top right of the window are on screen, with
// priority given to the top left.
gfx::Rect screen_rect =
- gfx::Screen::GetScreenFor(parent_widget->GetNativeView())
- ->GetDisplayNearestPoint(center).bounds();
+ gfx::Screen::GetScreen()->GetDisplayNearestPoint(center).bounds();
gfx::Rect bounds_rect = gfx::Rect(x, y, width, height);
bounds_rect.AdjustToFit(screen_rect);
window->SetBounds(bounds_rect);

Powered by Google App Engine
This is Rietveld 408576698