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

Unified Diff: ui/app_list/test/app_list_test_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/test/app_list_test_model.h ('k') | ui/app_list/views/app_list_item_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/test/app_list_test_model.cc
diff --git a/ui/app_list/test/app_list_test_model.cc b/ui/app_list/test/app_list_test_model.cc
index c320a0ca6176ecbbe5698125822a6f856104b758..394514ef12cd94dba6e90da37c2bd6d04ea6d3bd 100644
--- a/ui/app_list/test/app_list_test_model.cc
+++ b/ui/app_list/test/app_list_test_model.cc
@@ -33,14 +33,20 @@ std::string AppListTestModel::GetModelContent() {
return content;
}
-AppListItemModel* AppListTestModel::CreateItem(const std::string& title) {
+AppListItemModel* AppListTestModel::CreateItem(const std::string& title,
+ const std::string& full_name) {
AppListItemModel* item = new AppListItemModel;
- item->SetTitle(title);
+ item->SetTitleAndFullName(title, full_name);
return item;
}
void AppListTestModel::AddItem(const std::string& title) {
- apps()->Add(CreateItem(title));
+ apps()->Add(CreateItem(title, title));
+}
+
+void AppListTestModel::AddItem(const std::string& title,
+ const std::string& full_name) {
+ apps()->Add(CreateItem(title, full_name));
}
void AppListTestModel::HighlightItemAt(int index) {
« no previous file with comments | « ui/app_list/test/app_list_test_model.h ('k') | ui/app_list/views/app_list_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698