Revert "Reduce leaks in PostTaskAndReplyImpl::PostTaskAndReply (reland)."
This reverts commit 8e10a0af. Reason for revert: surfaces flakes in browser_tests, see crbug.com/829122 (only reverting base/ changes, test fixes can stay in) Original change's description: > Reduce leaks in PostTaskAndReplyImpl::PostTaskAndReply (reland). > > This CL first landed as https://chromium-review.googlesource.com/902191. > It was reverted because of a leak in PipeReaderTest.Cancel, which is > fixed by this CL by flushing the ScopedTaskEnvironment before the test > ends. > > Before, there was always a leak when the RunTaskAndPostReply callback > posted by PostTaskAndReplyImpl::PostTaskAndReply didn't run. > > With this CL, the "task" is never leaked and the "reply" is only > leaked if the execution environment is shutdown before the deletion > happens (e.g. MessageLoop deleted, TaskScheduler shutdown). > > TBR=gab@chromium.org,sky@chromium.org,kbr@chromium.org > > Bug: 807013 > Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel > Change-Id: Ic28839da7aed25fc56a4abadc565b7f4a6e0b5c5 > Reviewed-on: https://chromium-review.googlesource.com/997892 > Reviewed-by: François Doray <fdoray@chromium.org> > Reviewed-by: Gabriel Charette <gab@chromium.org> > Reviewed-by: Steven Bennetts <stevenjb@chromium.org> > Commit-Queue: François Doray <fdoray@chromium.org> > Cr-Commit-Position: refs/heads/master@{#548919} TBR=stevenjb@chromium.org,sky@chromium.org,gab@chromium.org,fdoray@chromium.org,kbr@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 807013, 829122 Change-Id: Iff4ca23f3cf011b0587478f479a1676e618b741b Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Reviewed-on: https://chromium-review.googlesource.com/1003792 Commit-Queue: Gabriel Charette <gab@chromium.org> Reviewed-by:Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#549398}
Showing
Please register or sign in to comment