Commit 46dd8f05 authored by Sylvain Defresne's avatar Sylvain Defresne Committed by Commit Bot

Remove unnecessary base::Passed() with base::BindOnce()

The documentation on base::Callback<...> (src/docs/callback.md)
recommends against using base::Passed(...) with base::BindOnce.

> Avoid using `base::Passed()` with `base::BindOnce()`, as `std::move()`
> does the same thing and is more familiar.

This CL was uploaded by git cl split.

Bug: none
Change-Id: I0795227dcd8c9c95a9ae99324b7f6782fa0cb63e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1611880
Commit-Queue: Scott Violet <sky@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#659583}
parent 9156f6dc
......@@ -153,7 +153,7 @@ class GpuTest : public testing::Test {
gpu_impl.reset();
event->Signal();
},
base::Passed(std::move(gpu_impl_)), &event));
std::move(gpu_impl_), &event));
event.Wait();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment