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 6dd7220e056c7c0419ce24b117dd7c20b48f78c6..a7fa586e5a9ad94dab0de8f3a07e1f49aa13feeb 100644 |
--- a/ash/common/wm/maximize_mode/maximize_mode_window_state.cc |
+++ b/ash/common/wm/maximize_mode/maximize_mode_window_state.cc |
@@ -156,8 +156,8 @@ 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( |
+ if (window_state->allow_set_bounds_direct()) { |
oshima
2017/04/12 22:27:24
this is slate code. can you just remove this?
Dominik Laskowski
2017/04/12 22:45:40
Done.
|
+ window_state->SetBoundsDirect( |
static_cast<const wm::SetBoundsEvent*>(event)->requested_bounds()); |
} else if (current_state_type_ == wm::WINDOW_STATE_TYPE_MAXIMIZED) { |
// Having a maximized window, it could have been created with an empty |