Index: webkit/glue/weburlloader_impl.cc |
diff --git a/webkit/glue/weburlloader_impl.cc b/webkit/glue/weburlloader_impl.cc |
index bf776f68a608f8f9c86ca2940ad4601fbabb8013..a9af6fd990c240300d7d4e674a4784c33ad95d26 100644 |
--- a/webkit/glue/weburlloader_impl.cc |
+++ b/webkit/glue/weburlloader_impl.cc |
@@ -172,13 +172,15 @@ void PopulateURLResponse( |
response->setSecurityInfo(info.security_info); |
response->setAppCacheID(info.appcache_id); |
response->setAppCacheManifestURL(info.appcache_manifest_url); |
- response->setWasCached(info.request_time > info.response_time); |
+ response->setWasCached(!info.load_timing.base_time.is_null() && |
+ info.response_time < info.load_timing.base_time); |
response->setWasFetchedViaSPDY(info.was_fetched_via_spdy); |
response->setWasNpnNegotiated(info.was_npn_negotiated); |
response->setWasAlternateProtocolAvailable( |
info.was_alternate_protocol_available); |
response->setWasFetchedViaProxy(info.was_fetched_via_proxy); |
response->setConnectionID(info.connection_id); |
+ response->setConnectionReused(info.connection_reused); |
WebURLLoadTiming timing; |
timing.initialize(); |