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

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
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);

Powered by Google App Engine
This is Rietveld 408576698