Fixed OOM issue for download progress infobar
InfoBarContainerLayout is a FrameLayout, which seems to keep references to its children after onMeasure call, even if they might have been removed. This causes DownloadProgressInfoBar to leak memory, if we move to another tab and keep downloading, while in theory we close the infobar of the background tab. OptimizedFrameLayout actually clears the references after onMeasure, hence using that seems to fix this issue. Bug: 1008906 Change-Id: I292331d3315728005fe7e81d03a08b00c2bcfab1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1838912Reviewed-by:David Trainor <dtrainor@chromium.org> Reviewed-by:
Matthew Jones <mdjones@chromium.org> Commit-Queue: Shakti Sahu <shaktisahu@chromium.org> Cr-Commit-Position: refs/heads/master@{#702972}
Showing
Please register or sign in to comment