Index: ash/system/web_notification/web_notification_tray.cc |
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc |
index db2814f4ddf6877fe9b4914e565e85a569edfb83..a8b1139d65648ed8ec48f8edb1238cdbf245df26 100644 |
--- a/ash/system/web_notification/web_notification_tray.cc |
+++ b/ash/system/web_notification/web_notification_tray.cc |
@@ -226,12 +226,6 @@ bool WebNotificationTray::ShowMessageCenterInternal(bool show_settings) { |
max_height = shelf_bounds.y(); |
break; |
} |
- case SHELF_ALIGNMENT_TOP: { |
- aura::Window* root = status_area_window->GetRootWindow(); |
- max_height = |
- root->bounds().height() - status_area_window->bounds().height(); |
- break; |
- } |
case SHELF_ALIGNMENT_LEFT: |
case SHELF_ALIGNMENT_RIGHT: { |
// Assume that the bottom line of the status area widget and the bubble |
@@ -239,8 +233,6 @@ bool WebNotificationTray::ShowMessageCenterInternal(bool show_settings) { |
max_height = status_area_window->GetBoundsInRootWindow().bottom(); |
break; |
} |
- default: |
- NOTREACHED(); |
} |
message_center_bubble->SetMaxHeight(std::max(0, |