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

Unified Diff: chrome/browser/ui/app_list/arc/arc_default_app_list.cc

Issue 2738983003: arc: Enable Play Store item in App Launcher for managed case. (Closed)
Patch Set: remove FILTER_ from enum, minor comment update Created 3 years, 9 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 | « chrome/browser/ui/app_list/arc/arc_default_app_list.h ('k') | 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/arc/arc_default_app_list.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_default_app_list.cc b/chrome/browser/ui/app_list/arc/arc_default_app_list.cc
index c21fac9e980021f3d471a9ad23702a652fcbb600..78d3f9a38a4cb7f896125438c1cf6c0213624f48 100644
--- a/chrome/browser/ui/app_list/arc/arc_default_app_list.cc
+++ b/chrome/browser/ui/app_list/arc/arc_default_app_list.cc
@@ -171,8 +171,11 @@ void ArcDefaultAppList::OnAppsReady(std::unique_ptr<AppInfoMap> apps) {
const ArcDefaultAppList::AppInfo* ArcDefaultAppList::GetApp(
const std::string& app_id) const {
- if (hidden_)
+ if ((filter_level_ == FilterLevel::ALL) ||
+ (filter_level_ == FilterLevel::OPTIONAL_APPS &&
+ app_id != arc::kPlayStoreAppId)) {
return nullptr;
+ }
const auto it = apps_.find(app_id);
if (it == apps_.end())
return nullptr;
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_default_app_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698