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

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

Issue 2913423003: Refactor recording of the Startup.FirstWebContents.RenderProcessHostInit.ToNonEmptyPaint metric
Patch Set: Created 3 years, 7 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 dc87c1f8bcb447f36a317658a9dbe6a373ba1662..f3bd1f3ef52a44fe5e7f5f4b95f5c2be447ccf0b 100644
--- a/chrome/browser/metrics/first_web_contents_profiler.cc
+++ b/chrome/browser/metrics/first_web_contents_profiler.cc
@@ -108,10 +108,7 @@ void FirstWebContentsProfiler::DidFirstVisuallyNonEmptyPaint() {
collected_paint_metric_ = true;
startup_metric_utils::RecordFirstWebContentsNonEmptyPaint(
- base::TimeTicks::Now(), web_contents()
- ->GetMainFrame()
- ->GetProcess()
- ->GetInitTimeForNavigationMetrics());
+ base::TimeTicks::Now());
metrics::TrackingSynchronizer::OnProfilingPhaseCompleted(
metrics::ProfilerEventProto::EVENT_FIRST_NONEMPTY_PAINT);

Powered by Google App Engine
This is Rietveld 408576698