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

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

Issue 9558004: Makes windows no longer open maximized by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to trunk Created 8 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 | ash/wm/workspace/workspace_manager.h » ('j') | 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 b5376e8fff5ab34f6c475e4ab9c597c306370e2c..0ac362cda8f2b5183630dee9406a5538fcb0d973 100644
--- a/ash/wm/workspace/workspace_layout_manager.cc
+++ b/ash/wm/workspace/workspace_layout_manager.cc
@@ -41,12 +41,7 @@ void WorkspaceLayoutManager::OnWindowAddedToLayout(aura::Window* child) {
if (child->IsVisible()) {
workspace_manager_->AddWindow(child);
- } else if (wm::IsWindowMaximized(child) ||
- workspace_manager_->ShouldMaximize(child)) {
- if (!wm::IsWindowMaximized(child)) {
- SetRestoreBoundsIfNotSet(child);
- wm::MaximizeWindow(child);
- }
+ } else if (wm::IsWindowMaximized(child)) {
SetChildBoundsDirect(child,
gfx::Screen::GetMonitorWorkAreaNearestWindow(child));
} else if (wm::IsWindowFullscreen(child)) {
« no previous file with comments | « no previous file | ash/wm/workspace/workspace_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698