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

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: 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/tray/tray_item_view.cc ('k') | ash/system/user/tray_user.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « ash/system/tray/tray_item_view.cc ('k') | ash/system/user/tray_user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698