Zip Archiver: Prevent duplicated loading when opening ZIP file in Drive.
Once loading of an archive has been started, it should not start loading the same file again. Existing logic returns "EXISTS" error via fileSystemProvider API when an archive is already mounted. However, it missed handling of a case where user requested opening the same archive while its loading is ongoing. It typically happens when an archive is on Drive and not yet cached. As a transitive fix, this change reuses the "scanning..." message to indiacte that user need to wait operation finish in such case. Bug: 807254 Test: manually tested on Files app as noted in the bug. Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: I90d5b8b2c157ea40b40ad106bbcb85b1bd022ea7 Reviewed-on: https://chromium-review.googlesource.com/895424 Commit-Queue: Tatsuhisa Yamaguchi <yamaguchi@chromium.org> Reviewed-by:Yuki Awano <yawano@chromium.org> Cr-Commit-Position: refs/heads/master@{#533292}
Showing
Please register or sign in to comment