Index: chrome/browser/chromeos/options/network_config_view.cc |
diff --git a/chrome/browser/chromeos/options/network_config_view.cc b/chrome/browser/chromeos/options/network_config_view.cc |
index 48bea5c64d58193948a439a7a084edb779ca89fb..e519af12a36e59982e0ff6d57935f3d5710847e9 100644 |
--- a/chrome/browser/chromeos/options/network_config_view.cc |
+++ b/chrome/browser/chromeos/options/network_config_view.cc |
@@ -213,7 +213,7 @@ void NetworkConfigView::ShowAdvancedView() { |
IDS_JOIN_WIFI_NETWORK_DIALOG_ADVANCED_WIDTH_CHARS, |
IDS_JOIN_WIFI_NETWORK_DIALOG_ADVANCED_MINIMUM_HEIGHT_LINES); |
// Get the new bounds with desired size at the same center point. |
- gfx::Rect bounds = GetWidget()->GetWindowScreenBounds(); |
+ gfx::Rect bounds = GetWidget()->GetWindowBoundsInScreen(); |
int horiz_padding = bounds.width() - size.width(); |
int vert_padding = bounds.height() - size.height(); |
bounds.Inset(horiz_padding / 2, vert_padding / 2, |