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

Unified Diff: ash/shell/app_list.cc

Issue 23709003: Display an app's short name in the app launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set both title and full name together in AppListItemModel Created 7 years, 4 months 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 | « no previous file | chrome/browser/ui/app_list/extension_app_item.cc » ('j') | ui/app_list/app_list_item_model.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/app_list.cc
diff --git a/ash/shell/app_list.cc b/ash/shell/app_list.cc
index 498de37848faadd64a7adaae4523c5d80ce3a265..dc08e3e2eabf55ce910f4086d455d793c916abc3 100644
--- a/ash/shell/app_list.cc
+++ b/ash/shell/app_list.cc
@@ -45,8 +45,9 @@ class WindowTypeLauncherItem : public app_list::AppListItemModel {
};
explicit WindowTypeLauncherItem(Type type) : type_(type) {
+ std::string title(GetTitle(type));
SetIcon(GetIcon(type), false);
- SetTitle(GetTitle(type));
+ SetName(title, title);
}
static gfx::ImageSkia GetIcon(Type type) {
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/extension_app_item.cc » ('j') | ui/app_list/app_list_item_model.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698