Get display names for all download on InProgressManager initialization
With recent changes, the target path is not a content Uri if download is written to a content Uri. This may cause some undesirable effect for resumption. We kept the target path earlier due to display names. This Cl solves both issues by loading the display names from ContentResolver on initialization time, and pass them to all the download items so that could be used later. The target path will be changed to content Uri once intermediate file rename completes. TBR=dtrainor@chromium.org BUG=931021 Change-Id: I36bf5245ea1f7d36aa707a4b0f1065a5b0f8b133 Reviewed-on: https://chromium-review.googlesource.com/c/1479934 Commit-Queue: Min Qin <qinmin@chromium.org> Reviewed-by:Min Qin <qinmin@chromium.org> Reviewed-by:
Andrew Grieve <agrieve@chromium.org> Reviewed-by:
Xing Liu <xingliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#636738}
Showing
Please register or sign in to comment