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

Unified Diff: chrome/browser/ui/app_list/search/app_search_provider.cc

Issue 918443002: Make experimental app list use short names for app search results. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_uninstall_again
Patch Set: Created 5 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/search/app_search_provider.cc
diff --git a/chrome/browser/ui/app_list/search/app_search_provider.cc b/chrome/browser/ui/app_list/search/app_search_provider.cc
index a45e4d9c19a4b14ee0e7cad18674d9cfb1e6fdbf..ec4f4460d544516c5721cef4ceeb885edf03e831 100644
--- a/chrome/browser/ui/app_list/search/app_search_provider.cc
+++ b/chrome/browser/ui/app_list/search/app_search_provider.cc
@@ -20,6 +20,7 @@
#include "extensions/browser/extension_system.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_set.h"
+#include "ui/app_list/app_list_switches.h"
#include "ui/app_list/search/tokenized_string.h"
#include "ui/app_list/search/tokenized_string_match.h"
@@ -32,7 +33,9 @@ class AppSearchProvider::App {
explicit App(const extensions::Extension* extension,
const base::Time& last_launch_time)
: app_id_(extension->id()),
- indexed_name_(base::UTF8ToUTF16(extension->name())),
+ indexed_name_(base::UTF8ToUTF16(switches::IsExperimentalAppListEnabled()
Matt Giuca 2015/02/12 02:17:48 Ideally, this would not be gated on whether the ex
+ ? extension->short_name()
+ : extension->name())),
last_launch_time_(last_launch_time) {}
~App() {}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698