Chromium Code Reviews| Index: ash/system/user/user_card_view.cc |
| diff --git a/ash/system/user/user_card_view.cc b/ash/system/user/user_card_view.cc |
| index cb29388b39fcb51f6370ae582c60208b130fbc3a..79503cfb82307920d2544ad2dd092426d3ad900e 100644 |
| --- a/ash/system/user/user_card_view.cc |
| +++ b/ash/system/user/user_card_view.cc |
| @@ -340,9 +340,6 @@ UserCardView::UserCardView(user::LoginStatus login_status, |
| SetLayoutManager(new views::BoxLayout( |
| views::BoxLayout::kHorizontal, 0, 0, kTrayPopupPaddingBetweenItems)); |
| switch (login_status) { |
|
bartfab (slow)
2014/12/02 21:25:26
Nit: This can become a simple if/else now.
rkc
2014/12/04 19:50:06
Done.
|
| - case user::LOGGED_IN_RETAIL_MODE: |
| - AddRetailModeUserContent(); |
| - break; |
| case user::LOGGED_IN_PUBLIC: |
| AddPublicModeUserContent(max_width); |
| break; |
| @@ -354,14 +351,6 @@ UserCardView::UserCardView(user::LoginStatus login_status, |
| UserCardView::~UserCardView() {} |
| -void UserCardView::AddRetailModeUserContent() { |
| - views::Label* details = new views::Label; |
| - details->SetText(l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_KIOSK_LABEL)); |
| - details->SetBorder(views::Border::CreateEmptyBorder(0, 4, 0, 1)); |
| - details->SetHorizontalAlignment(gfx::ALIGN_LEFT); |
| - AddChildView(details); |
| -} |
| - |
| void UserCardView::AddPublicModeUserContent(int max_width) { |
| views::View* icon = CreateIcon(user::LOGGED_IN_PUBLIC, 0); |
| AddChildView(icon); |