Commit 8eac9b6c authored by Matthew Mourgos's avatar Matthew Mourgos Committed by Commit Bot

Shows the label "Unnamed Folder" in the app list when a group is created...

Shows the label "Unnamed Folder" in the app list when a group is created without creating a custom name.

Bug: 755547
Change-Id: I31f24f546fa508737920e5d8a590028fd80a0480
Reviewed-on: https://chromium-review.googlesource.com/c/1343000Reviewed-by: default avatarWeidong Guo <weidongg@chromium.org>
Commit-Queue: Matthew Mourgos <mmourgos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609565}
parent b9933fea
......@@ -407,7 +407,12 @@ void AppListItemView::SetAsAttemptedFolderTarget(bool is_target_folder) {
void AppListItemView::SetItemName(const base::string16& display_name,
const base::string16& full_name) {
title_->SetText(display_name);
if (is_folder_ && display_name.empty()) {
title_->SetText(ui::ResourceBundle::GetSharedInstance().GetLocalizedString(
IDS_APP_LIST_FOLDER_NAME_PLACEHOLDER));
} else {
title_->SetText(display_name);
}
tooltip_text_ = display_name == full_name ? base::string16() : full_name;
......
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