Chromium Code Reviews| Index: chrome/browser/ui/views/apps/chrome_native_app_window_views.cc |
| diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc |
| index bb33494050b7842fee7b6d50fdde662d00dde86a..8f41324db17b12bd823e9d6bfeec80ad955f94a0 100644 |
| --- a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc |
| +++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc |
| @@ -214,18 +214,10 @@ void ChromeNativeAppWindowViews::InitializePanelWindow( |
| else if (preferred_size_.height() < kMinPanelHeight) |
| preferred_size_.set_height(kMinPanelHeight); |
| - // When a panel is not docked it will be placed at a default origin in the |
| - // currently active target root window. |
| - // TODO(afakhry): Remove Docked Windows in M58. |
| - bool use_default_bounds = create_params.state != ui::SHOW_STATE_DOCKED; |
| - // Sanitize initial origin reseting it in case it was not specified. |
| - using BoundsSpecification = AppWindow::BoundsSpecification; |
| - bool position_specified = |
| - initial_window_bounds.x() != BoundsSpecification::kUnspecifiedPosition && |
| - initial_window_bounds.y() != BoundsSpecification::kUnspecifiedPosition; |
| - params.bounds = (use_default_bounds || !position_specified) ? |
| - gfx::Rect(preferred_size_) : |
| - gfx::Rect(initial_window_bounds.origin(), preferred_size_); |
| + // A panel will be placed at a default origin in the currently active target |
| + // root window. |
| + const bool use_default_bounds = true; |
| + params.bounds = gfx::Rect(preferred_size_); |
| OnBeforePanelWidgetInit(use_default_bounds, ¶ms, widget()); |
|
oshima
2017/02/22 06:49:07
use_default_bounds is always true now. Can we remo
afakhry
2017/02/22 22:04:43
Done.
|
| widget()->Init(params); |
| widget()->set_focus_on_creation(create_params.focused); |