Remove an unneeded argument from FrameLoaderClient::download
[WebKit-https.git] / Source / WebKit2 / WebProcess / Downloads / cfnet / DownloadCFNet.cpp
index 2b89fc9..22906dc 100644 (file)
@@ -106,7 +106,7 @@ void Download::start(WebPage*)
     CFURLDownloadStart(m_download.get());
 }
 
-void Download::startWithHandle(WebPage*, ResourceHandle* handle, const ResourceRequest& initialRequest, const ResourceResponse& response)
+void Download::startWithHandle(WebPage*, ResourceHandle* handle, const ResourceResponse& response)
 {
     ASSERT(!m_download);
 
@@ -118,7 +118,7 @@ void Download::startWithHandle(WebPage*, ResourceHandle* handle, const ResourceR
                                   didReceiveResponseCallback, willResumeWithResponseCallback, didReceiveDataCallback, shouldDecodeDataOfMIMETypeCallback,
                                   decideDestinationWithSuggestedObjectNameCallback, didCreateDestinationCallback, didFinishCallback, didFailCallback};
 
-    m_download.adoptCF(CFURLDownloadCreateAndStartWithLoadingConnection(0, connection, initialRequest.cfURLRequest(), response.cfURLResponse(), &client));
+    m_download.adoptCF(CFURLDownloadCreateAndStartWithLoadingConnection(0, connection, handle->firstRequest().cfURLRequest(), response.cfURLResponse(), &client));
 
     // It is possible for CFURLDownloadCreateAndStartWithLoadingConnection() to fail if the passed in CFURLConnection is not in a "downloadable state"
     // However, we should never hit that case