Commit 8db5bd4e 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: I871ad49a3e38a3a46f9b2462b56da3165032ffcc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1611887
Commit-Queue: Nick Harper <nharper@chromium.org>
Reviewed-by: default avatarNick Harper <nharper@chromium.org>
Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#659589}
parent d0e8fe14
......@@ -178,10 +178,10 @@ ChromeURLRequestContextGetter::CreateAndInit(
// run and complete before the constructor returns, which would reduce the
// reference count from 1 to 0 on completion, and delete the object
// immediately.
base::PostTaskWithTraits(FROM_HERE, {content::BrowserThread::IO},
base::BindOnce(&ChromeURLRequestContextGetter::Init,
url_request_context_getter,
base::Passed(std::move(factory))));
base::PostTaskWithTraits(
FROM_HERE, {content::BrowserThread::IO},
base::BindOnce(&ChromeURLRequestContextGetter::Init,
url_request_context_getter, std::move(factory)));
return url_request_context_getter;
}
......
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