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

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

Issue 796793002: Make app list recommendations into their own DisplayType. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mathp_suggestions_search
Patch Set: fix_test Created 6 years 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: 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 02f2667ca10fe8356b21994f51c3528b21db431a..a7d7fa8bc7d9596aa43b0b73204ca927fe04960e 100644
--- a/chrome/browser/ui/app_list/search/app_search_provider.cc
+++ b/chrome/browser/ui/app_list/search/app_search_provider.cc
@@ -85,8 +85,8 @@ void AppSearchProvider::UpdateResults() {
for (Apps::const_iterator app_it = apps_.begin();
app_it != apps_.end();
++app_it) {
- scoped_ptr<AppResult> result(
- new AppResult(profile_, (*app_it)->app_id(), list_controller_));
+ scoped_ptr<AppResult> result(new AppResult(
+ profile_, (*app_it)->app_id(), list_controller_, show_recommendations));
if (show_recommendations) {
result->set_title((*app_it)->indexed_name().text());
result->UpdateFromLastLaunched(clock_->Now(),

Powered by Google App Engine
This is Rietveld 408576698