Commit cd8888b6 authored by nancy's avatar nancy Committed by Commit Bot

Remove paused apps from suggestion chips.

Based on the requirement:
https://docs.google.com/presentation/d/16He3heqXY5E6IN-OhYcuVe7TGVvZk9kRkWJZvcCP830/edit#slide=id.g638c2bca07_0_38
Paused apps shouldn’t show up in suggested chips.

BUG=1011235

Change-Id: I124861da4d888a82060607ade798f9b446eed4b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2033063
Commit-Queue: Nancy Wang <nancylingwang@chromium.org>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#737991}
parent 9b3a4445
......@@ -309,8 +309,9 @@ class AppServiceDataSource : public AppSearchProvider::DataSource,
this, update.AppId(), update.ShortName(), update.LastLaunchTime(),
update.InstallTime(),
update.InstalledInternally() == apps::mojom::OptionalBool::kTrue));
apps_vector->back()->set_recommendable(update.Recommendable() ==
apps::mojom::OptionalBool::kTrue);
apps_vector->back()->set_recommendable(
update.Recommendable() == apps::mojom::OptionalBool::kTrue &&
update.Paused() != apps::mojom::OptionalBool::kTrue);
apps_vector->back()->set_searchable(update.Searchable() ==
apps::mojom::OptionalBool::kTrue);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment