| Index: content/browser/frame_host/navigation_request.cc
|
| diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc
|
| index 84cc93f4ccf585d896080434989b8b100eee7c3f..4ebdc2743d46606987aafdbfab1d885556500a4e 100644
|
| --- a/content/browser/frame_host/navigation_request.cc
|
| +++ b/content/browser/frame_host/navigation_request.cc
|
| @@ -265,8 +265,11 @@ void NavigationRequest::OnRequestRedirected(
|
|
|
| void NavigationRequest::OnResponseStarted(
|
| const scoped_refptr<ResourceResponse>& response,
|
| - scoped_ptr<StreamHandle> body) {
|
| + mojo::ScopedDataPipeConsumerHandle data_consumer_handle,
|
| + int request_id) {
|
| DCHECK(state_ == STARTED);
|
| + DCHECK(data_consumer_handle.is_valid());
|
| + DCHECK_LT(request_id, -1);
|
| state_ = RESPONSE_STARTED;
|
|
|
| // Update the service worker params of the request params.
|
| @@ -286,7 +289,7 @@ void NavigationRequest::OnResponseStarted(
|
| common_params_.lofi_state = LOFI_OFF;
|
|
|
| frame_tree_node_->navigator()->CommitNavigation(
|
| - this, response.get(), std::move(body));
|
| + this, response.get(), std::move(data_consumer_handle), request_id);
|
| }
|
|
|
| void NavigationRequest::OnRequestFailed(bool has_stale_copy_in_cache,
|
|
|