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

Unified Diff: chrome/browser/ui/ash/chrome_launcher_prefs.cc

Issue 1973603002: arc: Make Play Store item persistance in shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 7 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: chrome/browser/ui/ash/chrome_launcher_prefs.cc
diff --git a/chrome/browser/ui/ash/chrome_launcher_prefs.cc b/chrome/browser/ui/ash/chrome_launcher_prefs.cc
index 12f0f6a15c9134e2baf1a9961e72bbb6b09a79a8..55bd4152808ced2016b1936ca3e98651eba62ca5 100644
--- a/chrome/browser/ui/ash/chrome_launcher_prefs.cc
+++ b/chrome/browser/ui/ash/chrome_launcher_prefs.cc
@@ -12,6 +12,8 @@
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
#include "chrome/browser/app_mode/app_mode_utils.h"
+#include "chrome/browser/chromeos/arc/arc_auth_service.h"
+#include "chrome/browser/chromeos/arc/arc_support_host.h"
#include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h"
#include "chrome/browser/ui/ash/launcher/launcher_controller_helper.h"
#include "chrome/common/extensions/extension_constants.h"
@@ -367,6 +369,11 @@ std::vector<std::string> GetPinnedAppsFromPrefs(
}
}
+ if (arc::ArcAuthService::IsAllowedForProfile(helper->profile()) &&
+ helper->IsValidIDForCurrentUser(ArcSupportHost::kHostAppId)) {
+ apps.push_back(ArcSupportHost::kHostAppId);
+ }
+
// If not added yet, the chrome item will be the last item in the list.
if (!chrome_listed)
apps.push_back(extension_misc::kChromeAppId);

Powered by Google App Engine
This is Rietveld 408576698