Simplify DownloadShelf "show download" code flow.
By inlining GetDownload() into ShowDownloadById() and making OnGetDownloadDoneForOfflineItem() a member, the code becomes clearer and more direct (mostly by converting the bound ShowDownload() callback into direct calls). Bug: none Change-Id: I92e424ee658e00aff5fbb243d4b6b574fc6285f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2296001 Commit-Queue: Peter Kasting <pkasting@chromium.org> Auto-Submit: Peter Kasting <pkasting@chromium.org> Reviewed-by:Min Qin <qinmin@chromium.org> Cr-Commit-Position: refs/heads/master@{#787928}
Showing
Please register or sign in to comment