Chromium Code Reviews| Index: ash/system/user/tray_user.cc |
| diff --git a/ash/system/user/tray_user.cc b/ash/system/user/tray_user.cc |
| index 60b0d8dc5bd9fad4ae8bc27089c4fb85161a8ead..882d22c93992ebb8b7c109e4cd6cb8b74f8ca50a 100644 |
| --- a/ash/system/user/tray_user.cc |
| +++ b/ash/system/user/tray_user.cc |
| @@ -553,12 +553,18 @@ void UserView::AddUserCard(SystemTrayItem* owner, |
| username->SetHorizontalAlignment(gfx::ALIGN_LEFT); |
| details->AddChildView(username); |
| - views::Label* email = new views::Label(UTF8ToUTF16(delegate->GetUserEmail())); |
| ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance(); |
| - email->SetFont(bundle.GetFont(ui::ResourceBundle::SmallFont)); |
| - email->SetHorizontalAlignment(gfx::ALIGN_LEFT); |
| - email->SetEnabled(false); |
| - details->AddChildView(email); |
| + |
| + views::Label* additional = new views::Label(); |
| + |
| + additional->SetText(login == ash::user::LOGGED_IN_LOCALLY_MANAGED ? |
| + bundle.GetLocalizedString(IDS_ASH_STATUS_TRAY_LOCALLY_MANAGED_LABEL): |
|
Daniel Erat
2013/04/29 14:34:27
nit: add a space before the ':'
Denis Kuznetsov (DE-MUC)
2013/04/30 10:29:28
Done.
|
| + UTF8ToUTF16(delegate->GetUserEmail())); |
| + |
| + additional->SetFont(bundle.GetFont(ui::ResourceBundle::SmallFont)); |
| + additional->SetHorizontalAlignment(gfx::ALIGN_LEFT); |
| + additional->SetEnabled(false); |
| + details->AddChildView(additional); |
| user_card_->AddChildView(details); |
| } |