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

Unified Diff: ash/system/user/user_card_view.cc

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/user/user_card_view.h ('k') | chrome/app/chromeos_strings.grdp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c5cc245b6673ed4c12edafd599188472ba53bbcd 100644
--- a/ash/system/user/user_card_view.cc
+++ b/ash/system/user/user_card_view.cc
@@ -339,29 +339,15 @@ UserCardView::UserCardView(user::LoginStatus login_status,
int multiprofile_index) {
SetLayoutManager(new views::BoxLayout(
views::BoxLayout::kHorizontal, 0, 0, kTrayPopupPaddingBetweenItems));
- switch (login_status) {
- case user::LOGGED_IN_RETAIL_MODE:
- AddRetailModeUserContent();
- break;
- case user::LOGGED_IN_PUBLIC:
- AddPublicModeUserContent(max_width);
- break;
- default:
- AddUserContent(login_status, multiprofile_index);
- break;
+ if (login_status == user::LOGGED_IN_PUBLIC) {
+ AddPublicModeUserContent(max_width);
+ } else {
+ AddUserContent(login_status, multiprofile_index);
}
}
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);
« no previous file with comments | « ash/system/user/user_card_view.h ('k') | chrome/app/chromeos_strings.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698