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

Unified Diff: ui/aura_shell/root_window_layout_manager.cc

Issue 8895003: Aura: Add --aura-laptop-mode to fill the workspace with a single window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix unit test build Created 9 years 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 | « ui/aura_shell/root_window_layout_manager.h ('k') | ui/aura_shell/shelf_layout_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/root_window_layout_manager.cc
diff --git a/ui/aura_shell/root_window_layout_manager.cc b/ui/aura_shell/root_window_layout_manager.cc
index 36417cc297beabef7e8641fd96b16830d032687c..556bc12f6aa4ee164bc189f80082271a56191031 100644
--- a/ui/aura_shell/root_window_layout_manager.cc
+++ b/ui/aura_shell/root_window_layout_manager.cc
@@ -32,7 +32,8 @@ void RootWindowLayoutManager::OnWindowResized() {
for (i = owner_->children().begin(); i != owner_->children().end(); ++i)
(*i)->SetBounds(fullscreen_bounds);
- background_widget_->SetBounds(fullscreen_bounds);
+ if (background_widget_)
+ background_widget_->SetBounds(fullscreen_bounds);
}
void RootWindowLayoutManager::OnWindowAddedToLayout(aura::Window* child) {
« no previous file with comments | « ui/aura_shell/root_window_layout_manager.h ('k') | ui/aura_shell/shelf_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698