Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: content/common/throttling_url_loader.cc

Issue 2925343003: Fix ThrottlingURLLoader to set task runner on Binding<URLLoaderClient>. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/throttling_url_loader.cc
diff --git a/content/common/throttling_url_loader.cc b/content/common/throttling_url_loader.cc
index aee6e0dbf20527bf7b1ff4b70c019ff0aedc0d76..beec7cc68e0503ade0f6c6461a9390423e9e1539 100644
--- a/content/common/throttling_url_loader.cc
+++ b/content/common/throttling_url_loader.cc
@@ -124,7 +124,7 @@ void ThrottlingURLLoader::Start(
}
mojom::URLLoaderClientPtr client;
- client_binding_.Bind(mojo::MakeRequest(&client, std::move(task_runner)));
+ client_binding_.Bind(mojo::MakeRequest(&client), std::move(task_runner));
factory->CreateLoaderAndStart(mojo::MakeRequest(&url_loader_), routing_id,
request_id, options, *url_request,
std::move(client));
@@ -257,7 +257,7 @@ void ThrottlingURLLoader::Resume() {
case DEFERRED_START: {
mojom::URLLoaderClientPtr client;
client_binding_.Bind(
- mojo::MakeRequest(&client, std::move(start_info_->task_runner)));
+ mojo::MakeRequest(&client), std::move(start_info_->task_runner));
start_info_->url_loader_factory->CreateLoaderAndStart(
mojo::MakeRequest(&url_loader_), start_info_->routing_id,
start_info_->request_id, start_info_->options,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698