Chromium Code Reviews| Index: content/browser/loader/resource_dispatcher_host_impl.cc |
| diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc |
| index cb64dc8880b575a8b9d68095f688b4de3ade8ef9..10d5b71c5d7c1dd5667915d4c43c0effe18db310 100644 |
| --- a/content/browser/loader/resource_dispatcher_host_impl.cc |
| +++ b/content/browser/loader/resource_dispatcher_host_impl.cc |
| @@ -2252,15 +2252,13 @@ void ResourceDispatcherHostImpl::BeginNavigationRequest( |
| GetChromeBlobStorageContextForResourceContext(resource_context)); |
| // Resolve elements from request_body and prepare upload data. |
| - if (info.request_body.get()) { |
| - AttachRequestBodyBlobDataHandles( |
| - info.request_body.get(), |
| - blob_context); |
| + if (ResourceRequestBody* body = info.common_params.post_data.get()) { |
|
clamy
2016/05/23 16:59:28
nit: I think in the codebase we tend to instantiat
Łukasz Anforowicz
2016/05/23 18:38:47
Done.
|
| + AttachRequestBodyBlobDataHandles(body, blob_context); |
| // TODO(davidben): The FileSystemContext is null here. In the case where |
| // another renderer requested this navigation, this should be the same |
| // FileSystemContext passed into ShouldServiceRequest. |
| new_request->set_upload(UploadDataStreamBuilder::Build( |
| - info.request_body.get(), |
| + body, |
| blob_context, |
| nullptr, // file_system_context |
| BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE) |
| @@ -2325,7 +2323,8 @@ void ResourceDispatcherHostImpl::BeginNavigationRequest( |
| ServiceWorkerRequestHandler::InitializeForNavigation( |
| new_request.get(), service_worker_handle_core, blob_context, |
| info.begin_params.skip_service_worker, resource_type, |
| - info.begin_params.request_context_type, frame_type, info.request_body); |
| + info.begin_params.request_context_type, frame_type, |
| + info.common_params.post_data); |
| // TODO(davidben): Attach AppCacheInterceptor. |