PendingAppManager is used for installing Default Apps and Policy Apps. In both of these cases, we need to set a special flag to indicate the app of app installed.
PendingAppManager is used for installing Default Apps and Policy Apps. In both of these cases, we need to set a special flag to indicate the source of app installed.
From discussion, the practical consequence of this is that it blocks the user from uninstalling a policy-installed app.
Setting to Pri=1, because otherwise if the user uninstalls a policy-installed app, it will come back again upon restart, which could be surprising.
Also note that Issue 876577 won't actually be an issue *until* we set the source, and then we'll have to fix it.
Be aware that there could be more than one special flag to set.
There's Manifest::Location in extensions/common/manifest.h, e.g. INTERNAL vs EXTERNAL_POLICY.
There's Extension::InitFromValueFlags in extensions/common/extension.h, e.g. WAS_INSTALLED_BY_DEFAULT and WAS_INSTALLED_BY_OEM. They might not be needed for policy-installed apps, but will probably be needed for default-installed apps.
Comment 1 by ortuno@chromium.org
, Aug 22