| Index: chrome/browser/metrics/first_web_contents_profiler.cc
|
| diff --git a/chrome/browser/metrics/first_web_contents_profiler.cc b/chrome/browser/metrics/first_web_contents_profiler.cc
|
| index 25a6b2a1f8fad0666a3309e068eecc9818089ac3..65df3fba2b3e89c9069cc75669e4a328613d0ed1 100644
|
| --- a/chrome/browser/metrics/first_web_contents_profiler.cc
|
| +++ b/chrome/browser/metrics/first_web_contents_profiler.cc
|
| @@ -15,6 +15,7 @@
|
| #include "chrome/browser/ui/tabs/tab_strip_model.h"
|
| #include "components/metrics/profiler/tracking_synchronizer.h"
|
| #include "components/metrics/proto/profiler_event.pb.h"
|
| +#include "components/startup_metric_utils/startup_metric_utils.h"
|
| #include "content/public/browser/browser_thread.h"
|
|
|
| namespace {
|
| @@ -126,6 +127,10 @@ FirstWebContentsProfiler::FirstWebContentsProfiler(
|
| void FirstWebContentsProfiler::DidFirstVisuallyNonEmptyPaint() {
|
| if (collected_paint_metric_)
|
| return;
|
| + if (startup_metric_utils::WasNonBrowserUIDisplayed()) {
|
| + FinishedCollectingMetrics();
|
| + return;
|
| + }
|
|
|
| collected_paint_metric_ = true;
|
| if (!process_creation_time_.is_null()) {
|
| @@ -165,6 +170,10 @@ void FirstWebContentsProfiler::DidFirstVisuallyNonEmptyPaint() {
|
| void FirstWebContentsProfiler::DocumentOnLoadCompletedInMainFrame() {
|
| if (collected_load_metric_)
|
| return;
|
| + if (startup_metric_utils::WasNonBrowserUIDisplayed()) {
|
| + FinishedCollectingMetrics();
|
| + return;
|
| + }
|
|
|
| collected_load_metric_ = true;
|
| if (!process_creation_time_.is_null()) {
|
|
|