Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DeleteSoon(..., std::unique_ptr<T>)
There are cases where we want to delete an object held by a unique_ptr in another thread. SequencedTaskRunner::DeleteSoon takes a raw pointer, which means we need to call release(), like task_runner->DeleteSoon(FROM_HERE, pointer.release()); This CL makes it possible to use std::move, like task_runner->DeleteSoon(FROM_HERE, std::move(pointer)); Bug: None Change-Id: I269d82547103ebe8c78c2498d269ba28ee5ca88f Reviewed-on: https://chromium-review.googlesource.com/515264 Commit-Queue: Yutaka Hirano <yhirano@chromium.org> Reviewed-by: Taiju Tsuiki <tzik@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Cr-Commit-Position: refs/heads/master@{#474879}
- Loading branch information