Index: content/browser/frame_host/navigator_impl.cc |
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc |
index 584f950b44185549ae195358c7322d4d71af7887..20eb28a415a36fabe659929faca6a910756414c7 100644 |
--- a/content/browser/frame_host/navigator_impl.cc |
+++ b/content/browser/frame_host/navigator_impl.cc |
@@ -897,10 +897,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", |