[Resource Timing] Gather timing information with reliable responseEnd time
[WebKit-https.git] / Source / WebCore / platform / network / cf / SynchronousResourceHandleCFURLConnectionDelegate.cpp
index 282d283..bec1b19 100644 (file)
@@ -171,7 +171,7 @@ void SynchronousResourceHandleCFURLConnectionDelegate::didReceiveResponse(CFURLC
 
     ResourceResponse resourceResponse(cfResponse);
 #if PLATFORM(COCOA) && ENABLE(WEB_TIMING)
-    ResourceHandle::getConnectionTimingData(connection, resourceResponse.networkLoadTiming());
+    ResourceHandle::getConnectionTimingData(connection, resourceResponse.deprecatedNetworkLoadMetrics());
 #else
     UNUSED_PARAM(connection);
 #endif
@@ -192,7 +192,7 @@ void SynchronousResourceHandleCFURLConnectionDelegate::didFinishLoading()
     LOG(Network, "CFNet - SynchronousResourceHandleCFURLConnectionDelegate::didFinishLoading(handle=%p) (%s)", m_handle, m_handle->firstRequest().url().string().utf8().data());
 
     if (ResourceHandleClient* client = m_handle->client())
-        client->didFinishLoading(m_handle, 0);
+        client->didFinishLoading(m_handle);
 }
 
 void SynchronousResourceHandleCFURLConnectionDelegate::didFail(CFErrorRef error)