Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1101)

Unified Diff: Source/core/inspector/InspectorResourceAgent.cpp

Issue 916273002: Make DocumentLoader::timing return a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | Source/core/loader/DocumentLoader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorResourceAgent.cpp
diff --git a/Source/core/inspector/InspectorResourceAgent.cpp b/Source/core/inspector/InspectorResourceAgent.cpp
index 1663aeaf7a4f434da3ee58d98f978236dc359bc7..059f6e8e51d4372e0d36c882e429130d19a44af9 100644
--- a/Source/core/inspector/InspectorResourceAgent.cpp
+++ b/Source/core/inspector/InspectorResourceAgent.cpp
@@ -276,7 +276,7 @@ void InspectorResourceAgent::restore()
static PassRefPtr<TypeBuilder::Network::ResourceTiming> buildObjectForTiming(const ResourceLoadTiming& timing, DocumentLoader* loader)
{
return TypeBuilder::Network::ResourceTiming::create()
- .setRequestTime(loader->timing()->monotonicTimeToPseudoWallTime(timing.requestTime()))
+ .setRequestTime(loader->timing().monotonicTimeToPseudoWallTime(timing.requestTime()))
.setProxyStart(timing.calculateMillisecondDelta(timing.proxyStart()))
.setProxyEnd(timing.calculateMillisecondDelta(timing.proxyEnd()))
.setDnsStart(timing.calculateMillisecondDelta(timing.dnsStart()))
@@ -541,7 +541,7 @@ void InspectorResourceAgent::didFinishLoading(unsigned long identifier, Document
double finishTime = 0.0;
// FIXME: Expose all of the timing details to inspector and have it calculate finishTime.
if (monotonicFinishTime)
- finishTime = loader->timing()->monotonicTimeToPseudoWallTime(monotonicFinishTime);
+ finishTime = loader->timing().monotonicTimeToPseudoWallTime(monotonicFinishTime);
String requestId = IdentifiersFactory::requestId(identifier);
m_resourcesData->maybeDecodeDataToContent(requestId);
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | Source/core/loader/DocumentLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698