-
Toby Huang authored
Currently, if an app is disabled pending custodian approval, and the supervised user tries to open it through the launcher, nothing happens. This CL fixes this behavior by either asking for parent permission or displaying an error dialog. If the parent has the "Permissions for sites, apps and extensions" toggle enabled, then launching the app will ask for parent permission. Otherwise, the user will see an error dialog. This CL also refactors some common logic between the ManagementAPI and ExtensionEnableFlow into the SupervisedUserExtensionsDelegate for determining which dialog to show when enabling extensions for supervised users. Bug: 1079415,1071255 Change-Id: I585238db5e9a9de96849b7a15dda120b13339b68 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2238408 Commit-Queue: Toby Huang <tobyhuang@chromium.org> Reviewed-by:
Scott Violet <sky@chromium.org> Reviewed-by:
Dan S <danan@chromium.org> Reviewed-by:
Devlin <rdevlin.cronin@chromium.org> Reviewed-by:
Yilkal Abe <yilkal@chromium.org> Reviewed-by:
Nancy Wang <nancylingwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#785958}
349247d2