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

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: fix autoformat problem with <x, >y Created 4 years, 9 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
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..ddd71817eb6411d57347b6ae12f8bf52474dd406 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

Powered by Google App Engine
This is Rietveld 408576698