Commit 6a94f448 authored by treib's avatar treib Committed by Commit bot

Fast user switcher: Add "(Supervised)" label for supervised users

BUG=463463

Review URL: https://codereview.chromium.org/1018003002

Cr-Commit-Position: refs/heads/master@{#321184}
parent 546ca22a
......@@ -1292,12 +1292,18 @@ views::View* ProfileChooserView::CreateOtherProfilesView(
AvatarMenu::GetImageForMenuButton(
item.profile_path, &item_icon, &is_rectangle);
base::string16 title = item.name;
if (item.supervised) {
title = l10n_util::GetStringFUTF16(IDS_SUPERVISED_USER_NEW_AVATAR_LABEL,
title);
}
gfx::Image image = profiles::GetSizedAvatarIcon(
item_icon, true, kSmallImageSide, kSmallImageSide);
views::LabelButton* button = new BackgroundColorHoverButton(
this,
item.name,
title,
*image.ToImageSkia());
open_other_profile_indexes_map_[button] = index;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment