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

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: Fixed compilation errors in app list unit tests on mac 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 | « ui/app_list/app_list_item_model.h ('k') | ui/app_list/cocoa/apps_grid_controller_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..65b87a33ab40a5b1256e317c40a94bb69a8dda80 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::SetTitleAndFullName(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());
}
« no previous file with comments | « ui/app_list/app_list_item_model.h ('k') | ui/app_list/cocoa/apps_grid_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698