Clear flags in CancelableTaskTracker::TryCancelAll
This makes TryCancelAll() additionally clear the flags map and invalidate any weak pointers, so that HasTrackedTasks() will return false immediately after calling TryCancelAll() (aligning calling TryCancelAll more with destroying the CancelableTaskTracker). This also updates the unit tests to account for this. Bug: 817054 Change-Id: I5d65847c2d230ed832d372f3980b847770638126 Reviewed-on: https://chromium-review.googlesource.com/939733Reviewed-by:Gabriel Charette <gab@chromium.org> Commit-Queue: Christopher Thompson <cthomp@chromium.org> Cr-Commit-Position: refs/heads/master@{#539877}
Showing
Please register or sign in to comment