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

Unified Diff: chrome/browser/metrics/first_web_contents_profiler.cc

Issue 1021053003: Delivering the FIRST_NONEMPTY_PAINT phase changing event to base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@phase_splitting
Patch Set: More comments. Created 5 years, 8 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/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 ae97bac1bed4d80caea5663f85161163524bca7c..0433d251c18f437304eec67a51ea16c2a5945af5 100644
--- a/chrome/browser/metrics/first_web_contents_profiler.cc
+++ b/chrome/browser/metrics/first_web_contents_profiler.cc
@@ -12,6 +12,8 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_iterator.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
+#include "components/metrics/profiler/tracking_synchronizer.h"
+#include "components/metrics/proto/profiler_event.pb.h"
scoped_ptr<FirstWebContentsProfiler>
FirstWebContentsProfiler::CreateProfilerForFirstWebContents(
@@ -51,6 +53,9 @@ void FirstWebContentsProfiler::DidFirstVisuallyNonEmptyPaint() {
elapsed);
}
+ metrics::TrackingSynchronizer::OnProfilingPhaseCompleted(
+ metrics::ProfilerEventProto::EVENT_FIRST_NONEMPTY_PAINT);
+
if (IsFinishedCollectingMetrics())
FinishedCollectingMetrics();
}

Powered by Google App Engine
This is Rietveld 408576698