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

Unified Diff: Source/core/timing/PerformanceNavigation.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/timing/Performance.cpp ('k') | Source/core/timing/PerformanceResourceTiming.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/timing/PerformanceNavigation.cpp
diff --git a/Source/core/timing/PerformanceNavigation.cpp b/Source/core/timing/PerformanceNavigation.cpp
index c1735ceeff5fedca5ada03606a38d8d0e8f96d67..e50ef4261393f5ee979764e2578ff5e311a9d805 100644
--- a/Source/core/timing/PerformanceNavigation.cpp
+++ b/Source/core/timing/PerformanceNavigation.cpp
@@ -70,11 +70,11 @@ unsigned short PerformanceNavigation::redirectCount() const
if (!loader)
return 0;
- DocumentLoadTiming* timing = loader->timing();
- if (timing->hasCrossOriginRedirect())
+ const DocumentLoadTiming& timing = loader->timing();
+ if (timing.hasCrossOriginRedirect())
return 0;
- return timing->redirectCount();
+ return timing.redirectCount();
}
void PerformanceNavigation::trace(Visitor* visitor)
« no previous file with comments | « Source/core/timing/Performance.cpp ('k') | Source/core/timing/PerformanceResourceTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698