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

Unified Diff: ash/system/web_notification/web_notification_tray.cc

Issue 1849623002: Remove unused ash::SHELF_ALIGNMENT_TOP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months 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 | « ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc ('k') | ash/wm/app_list_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc ('k') | ash/wm/app_list_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698