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

Unified Diff: athena/content/content_app_model_builder.cc

Issue 537113002: filter apps that should not be in athena home card. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: athena/content/content_app_model_builder.cc
diff --git a/athena/content/content_app_model_builder.cc b/athena/content/content_app_model_builder.cc
index 06cb747c856a9a20a1f648e18df0c9f45ce6b4e6..bdec047aa260faf2a349e5b26a76531790e0be82 100644
--- a/athena/content/content_app_model_builder.cc
+++ b/athena/content/content_app_model_builder.cc
@@ -102,8 +102,11 @@ void ContentAppModelBuilder::PopulateApps(app_list::AppListModel* model) {
for (extensions::ExtensionSet::const_iterator iter = extensions.begin();
iter != extensions.end();
++iter) {
- model->AddItem(scoped_ptr<app_list::AppListItem>(
- new AppItem(*iter, browser_context_)));
+ // TODO(mukai): use chrome/browser/extension_ui_util.
+ if ((*iter)->ShouldDisplayInAppLauncher()) {
+ model->AddItem(scoped_ptr<app_list::AppListItem>(
+ new AppItem(*iter, browser_context_)));
+ }
}
model->AddItem(scoped_ptr<app_list::AppListItem>(new DummyItem(
« 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