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

Unified Diff: components/page_load_metrics/browser/page_load_metrics_util.cc

Issue 1686643002: Add metric with time between background tab being foregrounded and the first paint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: components/page_load_metrics/browser/page_load_metrics_util.cc
diff --git a/components/page_load_metrics/browser/page_load_metrics_util.cc b/components/page_load_metrics/browser/page_load_metrics_util.cc
index 913b141f2d3815776fa74efc4c691f5db056dcaf..dbfa35ebad04390d702be6642f8a546ce3715e76 100644
--- a/components/page_load_metrics/browser/page_load_metrics_util.cc
+++ b/components/page_load_metrics/browser/page_load_metrics_util.cc
@@ -11,8 +11,8 @@
namespace page_load_metrics {
-bool EventOccurredInForeground(base::TimeDelta event,
- const PageLoadExtraInfo& info) {
+bool WasStartedInForegroundEventInForeground(base::TimeDelta event,
+ const PageLoadExtraInfo& info) {
return info.started_in_foreground && !event.is_zero() &&
(info.first_background_time.is_zero() ||
event < info.first_background_time);
« no previous file with comments | « components/page_load_metrics/browser/page_load_metrics_util.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698