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

Unified Diff: ash/system/tray/tray_utils.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/tray/tray_utils.cc
diff --git a/ash/system/tray/tray_utils.cc b/ash/system/tray/tray_utils.cc
index 893697c1a489748fc9d030ce2bef8cd449a4e782..fd2c81c9febea752a6a9d0bc32f0f92c19f589a3 100644
--- a/ash/system/tray/tray_utils.cc
+++ b/ash/system/tray/tray_utils.cc
@@ -26,8 +26,7 @@ void SetupLabelForTray(views::Label* label) {
void SetTrayImageItemBorder(views::View* tray_view,
ShelfAlignment alignment) {
- if (alignment == SHELF_ALIGNMENT_BOTTOM ||
- alignment == SHELF_ALIGNMENT_TOP) {
+ if (alignment == SHELF_ALIGNMENT_BOTTOM) {
tray_view->SetBorder(views::Border::CreateEmptyBorder(
0,
kTrayImageItemHorizontalPaddingBottomAlignment,
@@ -44,8 +43,7 @@ void SetTrayImageItemBorder(views::View* tray_view,
void SetTrayLabelItemBorder(TrayItemView* tray_view,
ShelfAlignment alignment) {
- if (alignment == SHELF_ALIGNMENT_BOTTOM ||
- alignment == SHELF_ALIGNMENT_TOP) {
+ if (alignment == SHELF_ALIGNMENT_BOTTOM) {
tray_view->SetBorder(views::Border::CreateEmptyBorder(
0,
kTrayLabelItemHorizontalPaddingBottomAlignment,

Powered by Google App Engine
This is Rietveld 408576698