| Index: ash/common/wm/maximize_mode/maximize_mode_window_state.cc
|
| diff --git a/ash/common/wm/maximize_mode/maximize_mode_window_state.cc b/ash/common/wm/maximize_mode/maximize_mode_window_state.cc
|
| index a8aa2305a6f6b3c30736263d53693017633aab88..31e6a0cc84dfcadf18846254320a84a02e722ee1 100644
|
| --- a/ash/common/wm/maximize_mode/maximize_mode_window_state.cc
|
| +++ b/ash/common/wm/maximize_mode/maximize_mode_window_state.cc
|
| @@ -163,6 +163,12 @@ void MaximizeModeWindowState::OnWMEvent(wm::WindowState* window_state,
|
| case wm::WM_EVENT_SHOW_INACTIVE:
|
| return;
|
| case wm::WM_EVENT_SET_BOUNDS:
|
| + if (window_state->allow_set_bounds_in_maximized()) {
|
| + window_state->SetBoundsConstrained(
|
| + static_cast<const wm::SetBoundsEvent*>(event)->requested_bounds());
|
| + break;
|
| + }
|
| +
|
| if (current_state_type_ == wm::WINDOW_STATE_TYPE_MAXIMIZED) {
|
| // Having a maximized window, it could have been created with an empty
|
| // size and the caller should get his size upon leaving the maximized
|
|
|