Chromium Code Reviews| Index: content/child/url_loader_client_impl.cc |
| diff --git a/content/child/url_loader_client_impl.cc b/content/child/url_loader_client_impl.cc |
| index 0ade2475acf9b8d052fbf54f2c23c2103a83df22..0b155f8c7b43f82dfbffbc5d5f388fc266256efe 100644 |
| --- a/content/child/url_loader_client_impl.cc |
| +++ b/content/child/url_loader_client_impl.cc |
| @@ -28,11 +28,8 @@ URLLoaderClientImpl::~URLLoaderClientImpl() { |
| body_consumer_->Cancel(); |
| } |
| -void URLLoaderClientImpl::Bind( |
| - mojom::URLLoaderClientAssociatedPtrInfo* client_ptr_info) { |
| - // TODO(yhirano): Use |task_runner_| here. |
| - // Currently it is unable because of a ChannelAssociatedInterface restriction. |
| - binding_.Bind(client_ptr_info); |
| +void URLLoaderClientImpl::Bind(mojom::URLLoaderClientPtr* client_ptr) { |
| + binding_.Bind(client_ptr, task_runner_.get()); |
|
dcheng
2017/03/01 01:29:13
Nit: no .get()
yhirano
2017/03/01 01:39:20
Done.
|
| } |
| void URLLoaderClientImpl::SetDefersLoading() { |
| @@ -112,9 +109,9 @@ void URLLoaderClientImpl::FlushDeferredMessages() { |
| void URLLoaderClientImpl::OnReceiveResponse( |
| const ResourceResponseHead& response_head, |
| - mojom::DownloadedTempFileAssociatedPtrInfo downloaded_file) { |
| + mojom::DownloadedTempFilePtr downloaded_file) { |
| has_received_response_ = true; |
| - downloaded_file_.Bind(std::move(downloaded_file)); |
| + downloaded_file_ = std::move(downloaded_file); |
| Dispatch(ResourceMsg_ReceivedResponse(request_id_, response_head)); |
| } |