Fix NonMainThreadTaskQueue leak
NonMainThreadTaskQueue holds ptr of the voter. Task voter in its turn holds refptr of TaskQueue it was created by. This results in a leak of the both instances. According to other usages of the voter, its ptr should be held by owner of the task queue. As a result, voter ptr and setPaused method is moved to a shared owner. Change-Id: I055bb82db2c1906eb3fd4c5c3329484f07f3b09d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1670870 Commit-Queue: Alexander Timin <altimin@chromium.org> Reviewed-by:Alexander Timin <altimin@chromium.org> Cr-Commit-Position: refs/heads/master@{#672049}
Showing
Please register or sign in to comment