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

Unified Diff: content/child/resource_dispatcher.cc

Issue 2573743002: Handle MOJO_RESULT_BUSY result in URLResponseBodyConsumer (Closed)
Patch Set: fix Created 4 years 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 | content/child/url_response_body_consumer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index 89a604da2ca3f47c1bd89a4b333fad4a76b9e8d0..bdabb9f8a05407a1f4f7d43f6e3d2f171d3f0cd3 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -95,7 +95,7 @@ class URLLoaderClientImpl final : public mojom::URLLoaderClient {
mojom::DownloadedTempFilePtr downloaded_file) override {
has_received_response_ = true;
if (body_consumer_)
- body_consumer_->Start(task_runner_.get());
+ body_consumer_->Start();
downloaded_file_ = std::move(downloaded_file);
resource_dispatcher_->OnMessageReceived(
ResourceMsg_ReceivedResponse(request_id_, response_head));
@@ -120,7 +120,7 @@ class URLLoaderClientImpl final : public mojom::URLLoaderClient {
body_consumer_ = new URLResponseBodyConsumer(
request_id_, resource_dispatcher_, std::move(body), task_runner_);
if (has_received_response_)
- body_consumer_->Start(task_runner_.get());
+ body_consumer_->Start();
}
void OnComplete(const ResourceRequestCompletionStatus& status) override {
« no previous file with comments | « no previous file | content/child/url_response_body_consumer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698