Index: ash/system/chromeos/screen_security/screen_tray_item.cc |
diff --git a/ash/system/chromeos/screen_security/screen_tray_item.cc b/ash/system/chromeos/screen_security/screen_tray_item.cc |
index 2b3667d7bd8fa9645e3d718d73fe174e55ec5b80..ab8b0033ea30e7aee0d36adc46df72ae9b81d469 100644 |
--- a/ash/system/chromeos/screen_security/screen_tray_item.cc |
+++ b/ash/system/chromeos/screen_security/screen_tray_item.cc |
@@ -188,10 +188,8 @@ void ScreenTrayItem::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) { |
// Center the item dependent on the orientation of the shelf. |
views::BoxLayout::Orientation layout = |
- (alignment == ash::SHELF_ALIGNMENT_BOTTOM || |
- alignment == ash::SHELF_ALIGNMENT_TOP) |
- ? views::BoxLayout::kHorizontal |
- : views::BoxLayout::kVertical; |
+ alignment == ash::SHELF_ALIGNMENT_BOTTOM ? views::BoxLayout::kHorizontal |
+ : views::BoxLayout::kVertical; |
tray_view_->SetLayoutManager(new views::BoxLayout(layout, 0, 0, 0)); |
tray_view_->Layout(); |
} |