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

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: 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/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..8560a65c8626586887ba878e1cbc1c7c416431f3 100644
--- a/ui/app_list/test/app_list_test_model.cc
+++ b/ui/app_list/test/app_list_test_model.cc
@@ -33,14 +33,21 @@ 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->SetFullName(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) {

Powered by Google App Engine
This is Rietveld 408576698