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

Unified Diff: ui/app_list/app_list_item_model.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
Index: ui/app_list/app_list_item_model.cc
diff --git a/ui/app_list/app_list_item_model.cc b/ui/app_list/app_list_item_model.cc
index c9aedb59be8e2163cae7483fa95937efb7f0d3df..7af5cd415b02ffcc13a8bb4f47782788af9e5349 100644
--- a/ui/app_list/app_list_item_model.cc
+++ b/ui/app_list/app_list_item_model.cc
@@ -24,11 +24,13 @@ void AppListItemModel::SetIcon(const gfx::ImageSkia& icon, bool has_shadow) {
FOR_EACH_OBSERVER(AppListItemModelObserver, observers_, ItemIconChanged());
}
-void AppListItemModel::SetTitle(const std::string& title) {
- if (title_ == title)
+void AppListItemModel::SetName(const std::string& title,
+ const std::string& full_name) {
+ if (title_ == title && full_name_ == full_name)
return;
title_ = title;
+ full_name_ = full_name;
FOR_EACH_OBSERVER(AppListItemModelObserver, observers_, ItemTitleChanged());
}

Powered by Google App Engine
This is Rietveld 408576698