Chromium Code Reviews| 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 b73427b14f7043608f3f54709b665295f38fda97..21232033aa943dbec1f80e390bec5597a7df0911 100644 |
| --- a/chrome/browser/ui/views/extensions/extension_dialog.cc |
| +++ b/chrome/browser/ui/views/extensions/extension_dialog.cc |
| @@ -164,7 +164,8 @@ void ExtensionDialog::InitWindow(BaseWindow* base_window, |
| int y = center.y() - height / 2; |
| // 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::GetDisplayNearestPoint(center).bounds(); |
| + gfx::Rect screen_rect = gfx::Screen::GetDisplayNearestPoint( |
| + gfx::Screen::BadTwoWorldsContext(), center).bounds(); |
|
oshima
2012/10/04 20:18:26
base_window?
|
| gfx::Rect bounds_rect = gfx::Rect(x, y, width, height); |
| bounds_rect = bounds_rect.AdjustToFit(screen_rect); |
| window_->SetBounds(bounds_rect); |