Index: chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc |
diff --git a/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc b/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc |
index 79531b63b93b3795f5efb9b7c05d23bcd1a06056..883bac2345d27f960d8363f61352c754a0f6a4e1 100644 |
--- a/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc |
+++ b/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc |
@@ -333,7 +333,8 @@ void CorePageLoadMetricsObserver::OnFirstContentfulPaint( |
timing.first_contentful_paint.value()); |
} |
- if (info.user_initiated) { |
Charlie Harrison
2016/12/07 15:45:13
Should we move these metrics to also log when the
Bryan McQuade
2016/12/07 16:32:00
Good idea. Added a TODO
|
+ if (info.user_initiated_info.browser_initiated || |
+ info.user_initiated_info.user_gesture) { |
PAGE_LOAD_HISTOGRAM(internal::kHistogramFirstContentfulPaintUserInitiated, |
timing.first_contentful_paint.value()); |
} |
@@ -351,7 +352,8 @@ void CorePageLoadMetricsObserver::OnFirstContentfulPaint( |
PAGE_LOAD_HISTOGRAM( |
internal::kHistogramLoadTypeFirstContentfulPaintReload, |
timing.first_contentful_paint.value()); |
- if (info.user_initiated) { |
+ if (info.user_initiated_info.browser_initiated || |
+ info.user_initiated_info.user_gesture) { |
PAGE_LOAD_HISTOGRAM( |
internal::kHistogramLoadTypeFirstContentfulPaintReloadByGesture, |
timing.first_contentful_paint.value()); |