Commit bd0384ad authored by Minoru Chikamune's avatar Minoru Chikamune Committed by Commit Bot

Use the given task runner for ThrottlingURLLoader instead of per-thread task runner

[Context]
This is a part of an effort to achieve MBI. We want to avoid per-thread task runner as much as possible.

[Previous code]
ThrottlingURLLoader::url_loader_ was using per-thread default task runner because task_runner was not specified for BindNewPipeAndPassReceiver.

[What this CL does]
Use the given task runner for ThrottlingURLLoader::url_loader_ instead of per-thread task runner

Bug: 1105403
Change-Id: I7da84124ac5f7adfea5327f3b976f8e45cb5d547
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2463262Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Minoru Chikamune <chikamune@chromium.org>
Cr-Commit-Position: refs/heads/master@{#816033}
parent 4081a838
......@@ -523,8 +523,9 @@ void ThrottlingURLLoader::StartNow() {
DCHECK(start_info_->url_loader_factory);
start_info_->url_loader_factory->CreateLoaderAndStart(
url_loader_.BindNewPipeAndPassReceiver(), start_info_->routing_id,
start_info_->request_id, start_info_->options, start_info_->url_request,
url_loader_.BindNewPipeAndPassReceiver(start_info_->task_runner),
start_info_->routing_id, start_info_->request_id, start_info_->options,
start_info_->url_request,
client_receiver_.BindNewPipeAndPassRemote(start_info_->task_runner),
net::MutableNetworkTrafficAnnotationTag(traffic_annotation_));
......
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