| 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);
|
|
|