memlog: Simplify threading in background upload
Previously, the background trigger logic attempted to hop between the IO and UI threads. This caused problems with task invalidation. In the new logic, the background trigger logic only runs on the UI thread which allows cancellation using WeakPtrFactory. Bug: 751321 Change-Id: Ibccf6f5f898ce53ffa2d52f11ebba00118d025f2 Reviewed-on: https://chromium-review.googlesource.com/773113 Commit-Queue: Albert J. Wong <ajwong@chromium.org> Reviewed-by:Albert J. Wong <ajwong@chromium.org> Reviewed-by:
Erik Chen <erikchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#517205}
Showing
Please register or sign in to comment