Index: mash/wm/shelf_layout.cc |
diff --git a/mash/wm/shelf_layout.cc b/mash/wm/shelf_layout.cc |
index cdabe532b211a92a244eed64156a60fbdf576702..1b341cc728724d186ceca44aef83f60818910831 100644 |
--- a/mash/wm/shelf_layout.cc |
+++ b/mash/wm/shelf_layout.cc |
@@ -18,9 +18,9 @@ ShelfLayout::ShelfLayout(mus::Window* owner) : LayoutManager(owner) { |
} |
ShelfLayout::~ShelfLayout() {} |
-void ShelfLayout::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 |
+// shelf restarts. |
void ShelfLayout::LayoutWindow(mus::Window* window) { |
gfx::Size preferred_size = GetWindowPreferredSize(window); |