Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3325)

Unified Diff: ash/wm/workspace/workspace_layout_manager.cc

Issue 153823010: Remove useless check from WorkspaceLayoutManager::ShowTypeChanged() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_layout_manager.cc
diff --git a/ash/wm/workspace/workspace_layout_manager.cc b/ash/wm/workspace/workspace_layout_manager.cc
index 4e79c6e83d114f84213addf40e982c06bb4bbf6b..1f8847a72e6b689be9d61ef22eb917acd39f2043 100644
--- a/ash/wm/workspace/workspace_layout_manager.cc
+++ b/ash/wm/workspace/workspace_layout_manager.cc
@@ -295,9 +295,6 @@ void WorkspaceLayoutManager::ShowTypeChanged(
wm::WindowState* window_state,
wm::WindowShowType last_show_type) {
if (window_state->IsMinimized()) {
- if (last_show_type == wm::SHOW_TYPE_MINIMIZED)
- return;
-
// Save the previous show state so that we can correctly restore it.
window_state->window()->SetProperty(aura::client::kRestoreShowStateKey,
wm::ToWindowShowState(last_show_type));
@@ -383,7 +380,7 @@ void WorkspaceLayoutManager::AdjustWindowBoundsForWorkAreaChange(
work_area_in_parent_, &bounds);
break;
}
- AdjustSnappedBounds(window_state, &bounds);
+ //AdjustSnappedBounds(window_state, &bounds);
if (window_state->window()->bounds() != bounds)
SetChildBoundsAnimated(window_state->window(), bounds);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698