summaryrefslogtreecommitdiffstats
path: root/content/browser/frame_host/navigator_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/frame_host/navigator_impl.cc')
-rw-r--r--content/browser/frame_host/navigator_impl.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 856202e..c5b67b4 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -896,10 +896,9 @@ void NavigatorImpl::RecordNavigationMetrics(
navigation_data_.reset();
return;
}
- RenderProcessHostImpl* process_host =
- static_cast<RenderProcessHostImpl*>(site_instance->GetProcess());
bool navigation_created_new_renderer_process =
- process_host->init_time() > navigation_data_->start_time_;
+ site_instance->GetProcess()->GetInitTimeForNavigationMetrics() >
+ navigation_data_->start_time_;
if (navigation_created_new_renderer_process) {
UMA_HISTOGRAM_TIMES(
"Navigation.TimeToCommit_NewRenderer_BeforeUnloadDiscounted",