Index: ash/system/tray/tray_background_view.cc |
diff --git a/ash/system/tray/tray_background_view.cc b/ash/system/tray/tray_background_view.cc |
index 0c125bff8d8810b9ba30dbe97c65c875b7f24d0f..82078edd5afd8b51418f47ef4c6eb78b0bede41b 100644 |
--- a/ash/system/tray/tray_background_view.cc |
+++ b/ash/system/tray/tray_background_view.cc |
@@ -191,8 +191,7 @@ void TrayBackgroundView::TrayContainer::ViewHierarchyChanged( |
void TrayBackgroundView::TrayContainer::UpdateLayout() { |
// Adjust the size of status tray dark background by adding additional |
// empty border. |
- if (alignment_ == SHELF_ALIGNMENT_BOTTOM || |
- alignment_ == SHELF_ALIGNMENT_TOP) { |
+ if (alignment_ == SHELF_ALIGNMENT_BOTTOM) { |
SetBorder(views::Border::CreateEmptyBorder( |
kPaddingFromEdgeOfShelf, |
kPaddingFromEdgeOfShelf, |
@@ -450,8 +449,7 @@ bool TrayBackgroundView::RequiresNotificationWhenAnimatorDestroyed() const { |
void TrayBackgroundView::HideTransformation() { |
gfx::Transform transform; |
- if (shelf_alignment_ == SHELF_ALIGNMENT_BOTTOM || |
- shelf_alignment_ == SHELF_ALIGNMENT_TOP) |
+ if (shelf_alignment_ == SHELF_ALIGNMENT_BOTTOM) |
transform.Translate(width(), 0.0f); |
else |
transform.Translate(0.0f, height()); |
@@ -567,8 +565,6 @@ TrayBubbleView::AnchorAlignment TrayBackgroundView::GetAnchorAlignment() const { |
return TrayBubbleView::ANCHOR_ALIGNMENT_LEFT; |
case SHELF_ALIGNMENT_RIGHT: |
return TrayBubbleView::ANCHOR_ALIGNMENT_RIGHT; |
- case SHELF_ALIGNMENT_TOP: |
- return TrayBubbleView::ANCHOR_ALIGNMENT_TOP; |
} |
NOTREACHED(); |
return TrayBubbleView::ANCHOR_ALIGNMENT_BOTTOM; |