Added checks to prune out redundant download updates
Download file keeps sending us updates about its status in a loop even though the download can be in a paused state. Added a check to prune out these updates if there is no change to the bytes received. This will enable us to clean up the code to avoid the state-dependent AddObserver/RemoveObserver calls in the download observers such as DownloadController. Bug: 913085 Change-Id: I915de9d8f95ba5320529ddfe761404c008678576 Reviewed-on: https://chromium-review.googlesource.com/c/1368650Reviewed-by:Min Qin <qinmin@chromium.org> Commit-Queue: Shakti Sahu <shaktisahu@chromium.org> Cr-Commit-Position: refs/heads/master@{#615361}
Showing
Please register or sign in to comment