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

Unified Diff: chrome/browser/page_load_metrics/metrics_navigation_throttle.cc

Issue 2624283004: Associate a main resource request with its PageLoadTracker. (Closed)
Patch Set: fix comment Created 3 years, 11 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
Index: chrome/browser/page_load_metrics/metrics_navigation_throttle.cc
diff --git a/chrome/browser/page_load_metrics/metrics_navigation_throttle.cc b/chrome/browser/page_load_metrics/metrics_navigation_throttle.cc
index 09e2f61e8a3ac324f71323ce849aed9ece1d5545..6eea79d87abeac6629647b84e7c3aad460e4c466 100644
--- a/chrome/browser/page_load_metrics/metrics_navigation_throttle.cc
+++ b/chrome/browser/page_load_metrics/metrics_navigation_throttle.cc
@@ -28,6 +28,16 @@ MetricsNavigationThrottle::WillStartRequest() {
return content::NavigationThrottle::PROCEED;
}
+content::NavigationThrottle::ThrottleCheckResult
+MetricsNavigationThrottle::WillProcessResponse() {
+ MetricsWebContentsObserver* observer =
+ MetricsWebContentsObserver::FromWebContents(
+ navigation_handle()->GetWebContents());
+ if (observer)
+ observer->WillProcessNavigationResponse(navigation_handle());
+ return content::NavigationThrottle::PROCEED;
+}
+
MetricsNavigationThrottle::MetricsNavigationThrottle(
content::NavigationHandle* handle)
: content::NavigationThrottle(handle) {}

Powered by Google App Engine
This is Rietveld 408576698