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

Unified Diff: mash/wm/background_layout.cc

Issue 1492563002: Introduce mash/shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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 | « mash/wm/background_layout.h ('k') | mash/wm/shelf_layout.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/background_layout.cc
diff --git a/mash/wm/background_layout.cc b/mash/wm/background_layout.cc
index da6e1939d15442f43fb2cd9a8d3f44813904b65e..93c085a990fd269280672181022beafba3be3001 100644
--- a/mash/wm/background_layout.cc
+++ b/mash/wm/background_layout.cc
@@ -12,9 +12,9 @@ namespace wm {
BackgroundLayout::BackgroundLayout(mus::Window* owner) : LayoutManager(owner) {}
BackgroundLayout::~BackgroundLayout() {}
-void BackgroundLayout::WindowAdded(mus::Window* window) {
- DCHECK_EQ(owner()->children().size(), 1U);
-}
+// We explicitly don't make assertions about the number of children in this
+// layout as the number of children can vary when the application providing the
+// background restarts.
void BackgroundLayout::LayoutWindow(mus::Window* window) {
window->SetBounds(gfx::Rect(owner()->bounds().size()));
« no previous file with comments | « mash/wm/background_layout.h ('k') | mash/wm/shelf_layout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698