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

Unified Diff: athena/home/app_list_view_delegate.cc

Issue 379333005: Allow AppSearchProvider to provide recommendations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: athena/home/app_list_view_delegate.cc
diff --git a/athena/home/app_list_view_delegate.cc b/athena/home/app_list_view_delegate.cc
index 2938bf70af9ba344c6228fd2eb806092e3f8822b..d0b8d23d04d8d77980f300326f4b5925a50f3e88 100644
--- a/athena/home/app_list_view_delegate.cc
+++ b/athena/home/app_list_view_delegate.cc
@@ -78,6 +78,11 @@ void AppListViewDelegate::GetShortcutPathForApp(
// Windows only, nothing is necessary.
}
+void AppListViewDelegate::FetchRecommendations() {
+ for (size_t i = 0; i < search_providers_.size(); ++i)
+ search_providers_[i]->FetchRecommendations();
+}
+
void AppListViewDelegate::StartSearch() {
for (size_t i = 0; i < search_providers_.size(); ++i)
search_providers_[i]->Start(model_->search_box()->text());

Powered by Google App Engine
This is Rietveld 408576698