Index: ash/launcher/launcher_view.cc |
diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc |
index 2bc06d51b3f335fe7d9c947d8c376694acde4411..676c5d57d34400f7085930f77c8a3cc8e91140a5 100644 |
--- a/ash/launcher/launcher_view.cc |
+++ b/ash/launcher/launcher_view.cc |
@@ -782,10 +782,9 @@ void LauncherView::CalculateIdealBounds(IdealBounds* bounds) { |
last_hidden_index_ >= first_panel_index); |
// Create Space for the overflow button |
- if (show_overflow && ash::switches::UseAlternateShelfLayout()) { |
- DCHECK(last_visible_index_ > 0); |
+ if (show_overflow && ash::switches::UseAlternateShelfLayout() && |
+ last_visible_index_ > 0) |
--last_visible_index_; |
- } |
for (int i = 0; i < view_model_->view_size(); ++i) { |
bool visible = i <= last_visible_index_ || i > last_hidden_index_; |
// Always show the app list. |