Commit 1e79a044 authored by Ahmed Fakhry's avatar Ahmed Fakhry Committed by Commit Bot

Make Android Clock App headless

It will be one of the default ARC apps, but we don't want it to show
up in the launcher.

BUG=744719
TEST=Install a new image build with the new PAI apk, and make sure
Clock don't show up in the launcher, yet it is installed from the
play store.

Change-Id: I9994c740f4bad64515a4b88c6d6734684f9f6ec2
Reviewed-on: https://chromium-review.googlesource.com/594664Reviewed-by: default avatarYury Khmel <khmel@chromium.org>
Commit-Queue: Ahmed Fakhry <afakhry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#491537}
parent 3b4de370
......@@ -77,6 +77,12 @@ constexpr char kEndSuffix[] = "end";
constexpr char kIntentPrefix[] = "#Intent";
constexpr char kLaunchFlags[] = "launchFlags";
constexpr char kAndroidClockAppId[] = "ddmmnabaeomoacfpfjgghfpocfolhjlg";
constexpr char const* kAppIdsHiddenInLauncher[] = {
kAndroidClockAppId, kSettingsAppId,
};
// Find a proper size and position for a given rectangle on the screen.
// TODO(skuhne): This needs more consideration, but it is lacking
// WindowPositioner functionality since we do not have an Aura::Window yet.
......@@ -246,7 +252,11 @@ const char kSettingsAppId[] = "mconboelelhjpkbdhhiijkgcimoangdj";
const char kInitialStartParam[] = "S.org.chromium.arc.start_type=initialStart";
bool ShouldShowInLauncher(const std::string& app_id) {
return app_id != kSettingsAppId;
for (auto* const id : kAppIdsHiddenInLauncher) {
if (id == app_id)
return false;
}
return true;
}
bool LaunchAndroidSettingsApp(content::BrowserContext* context,
......
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