Commit 749d9013 authored by Quang Minh Tuan Nguyen's avatar Quang Minh Tuan Nguyen Committed by Commit Bot

Convert base::Bind() for download_file

Bug: 1007685
Change-Id: I0db5f8120bae94e8f71347de005284986a1b1827
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2282631
Commit-Queue: Shakti Sahu <shaktisahu@chromium.org>
Auto-Submit: Quang Minh Tuan Nguyen <nqmtuan@google.com>
Reviewed-by: default avatarShakti Sahu <shaktisahu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786590}
parent a9cf2dc7
......@@ -640,7 +640,7 @@ void DownloadFileImpl::StreamActive(SourceStream* source_stream,
source_stream->read_stream_callback()->callback());
} else if (state == InputStream::EMPTY && !should_terminate) {
source_stream->RegisterDataReadyCallback(
base::Bind(&DownloadFileImpl::StreamActive, weak_factory_.GetWeakPtr(),
base::BindRepeating(&DownloadFileImpl::StreamActive, weak_factory_.GetWeakPtr(),
source_stream));
}
......
......@@ -802,7 +802,7 @@ TEST_P(DownloadFileTestWithRename, RenameWithErrorRetry) {
// the completion callback.
InvokeRenameMethod(
GetParam(), target_path,
base::Bind(&TestRenameCompletionCallback, succeeding_run.QuitClosure(),
base::BindOnce(&TestRenameCompletionCallback, succeeding_run.QuitClosure(),
&did_run_callback));
EXPECT_FALSE(did_run_callback);
......
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