Commit 4c68d5ce authored by Vasilii Sukhanov's avatar Vasilii Sukhanov Committed by Commit Bot

Remove the current profile from the profile chooser menu.

Bug: 854638
Change-Id: I32e08f3f33558f7286f5cd80b05e86aa0dae0dd4
Reviewed-on: https://chromium-review.googlesource.com/1146817
Commit-Queue: Bret Sepulveda <bsep@chromium.org>
Reviewed-by: default avatarBret Sepulveda <bsep@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577222}
parent 653b14f2
......@@ -1266,8 +1266,7 @@ views::View* ProfileChooserView::CreateOptionsView(bool display_lock,
}
for (size_t i : ordered_item_indices) {
const AvatarMenu::Item& item = avatar_menu->GetItemAt(i);
if (!item.active ||
(dice_enabled_ && avatar_menu->GetNumberOfItems() >= 2)) {
if (!item.active) {
gfx::Image image = profiles::GetSizedAvatarIcon(
item.icon, true, kIconSize, kIconSize, profiles::SHAPE_CIRCLE);
views::LabelButton* button =
......
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