Download location, missing sd card error handling. |
|||
Issue descriptionChrome Version: 68 When user downloads to external SD card, the user may unmount the SD card, and needs to show UI to user. The backend native code layer needs the following change: 1. Handle base::File::Write gracefully, that a Write call may only write a partial buffer and return a size less than expected when the SD card is unmounted. Currently we will hit a DCHECK and push the offset incorrectly, which may result in undefined data write to file at some point. 2. After pulling out the SD card, currently the code may generate a temp file through renaming logic on internal storage, we probably want to avoid this to happen. On the UI layer, it needs: 1. Show an error notification. 2. Show DownloadLocationDialog with an error message on the main view.
,
May 23 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/fcd12ababd1a66e8473d65fca05b569f09707b30 commit fcd12ababd1a66e8473d65fca05b569f09707b30 Author: Xing Liu <xingliu@chromium.org> Date: Wed May 23 17:43:16 2018 Download location: Show correct error message when removing SD card. When the user pulls out the SD card during download, currently we show the error message file already exists. This CL handles the case when download has no WebContents and can't write to external storage, we now show error: "download failed because storage location is not reachable." The download record will then be removed in download home UI. Bug: 841559 ,792775 Change-Id: I918d1484abf183770c49514675e1d1757f5ff887 Reviewed-on: https://chromium-review.googlesource.com/1067754 Reviewed-by: David Trainor <dtrainor@chromium.org> Commit-Queue: Xing Liu <xingliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#561144} [modify] https://crrev.com/fcd12ababd1a66e8473d65fca05b569f09707b30/chrome/browser/download/chrome_download_manager_delegate.cc
,
May 24 2018
,
Jun 21 2018
|
|||
►
Sign in to add a comment |
|||
Comment 1 by bugdroid1@chromium.org
, May 11 2018