refactor: replace base::Bind() with base::BindOnce() / base::BindRepeating() (#27447)
This commit is contained in:
parent
b11c5533e8
commit
949fd0728f
10 changed files with 24 additions and 22 deletions
|
@ -40,7 +40,7 @@ void URLPipeLoader::Start(
|
|||
const net::NetworkTrafficAnnotationTag& annotation,
|
||||
base::DictionaryValue upload_data) {
|
||||
loader_ = network::SimpleURLLoader::Create(std::move(request), annotation);
|
||||
loader_->SetOnResponseStartedCallback(base::Bind(
|
||||
loader_->SetOnResponseStartedCallback(base::BindOnce(
|
||||
&URLPipeLoader::OnResponseStarted, weak_factory_.GetWeakPtr()));
|
||||
|
||||
// TODO(zcbenz): The old protocol API only supports string as upload data,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue