policy: Uninstall apps that are no longer forced installed
Implements the WebAppPolicyManager side of uninstalling policy-installed apps. WebAppPolicyManager saves a set of the apps it last installed. Then when a new policy arrives, it compares the saved set with the most recent set and uninstalls any apps that are not in the latest policy. We keep this set of last installed apps because if we were to retrieve the list of installed apps from the ExtensionIdsMap, we could miss some uninstalls i.e. uninstalling apps that are in the process of being installed. For example, if we get a new policy with apps A and B. While we install A, a new policy arrives only with app A. If we were to retrieve the list of installed apps, we would only see A and would miss uninstalling B. Bug: 876174 Change-Id: I8805565ed8e38f2264a27a802b025bd8d4480cc2 Reviewed-on: https://chromium-review.googlesource.com/1195293 Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org> Reviewed-by:Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#587563}
Showing
This diff is collapsed.
Please register or sign in to comment