Fix folder location & ordinal for Crostini Apps on update
Currently, when updating an existing Crostini App, the associated CrostiniAppItem's ordinal and folder id are not preserved. This is because a new CrostiniAppItem is added to replace the old one. This leads to icons which users had previously removed from the Linux Apps folder to return to the folder, for example. This CL saves the item ordinal and folder id from the old app item, and re-sets them on the new app item. This CL also changes process for inserting a newly installed app so that it removes the app before adding it. This is needed for the case that the user reformats their Chromebook without uninstalling Crostini, which leaves residual app info in their preferences. Bug: 822488 Change-Id: Id7442c6563851ad4997578da65340a5c2eeef3f5 Reviewed-on: https://chromium-review.googlesource.com/1150955 Commit-Queue: Renée Wright <rjwright@chromium.org> Reviewed-by:Steven Bennetts <stevenjb@chromium.org> Cr-Commit-Position: refs/heads/master@{#578541}
Showing
Please register or sign in to comment