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

Unified Diff: chrome/common/page_load_metrics/page_load_timing.cc

Issue 2533783003: Add metrics for style update time before FCP. (Closed)
Patch Set: value_or(base::TimeDelta()) Created 4 years, 1 month 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/common/page_load_metrics/page_load_timing.cc
diff --git a/chrome/common/page_load_metrics/page_load_timing.cc b/chrome/common/page_load_metrics/page_load_timing.cc
index 40120a3a406d14b5696d9dfc4bed2026db9de77b..9ce7705baca0e990be0c45250ed031fdbc7374a6 100644
--- a/chrome/common/page_load_metrics/page_load_timing.cc
+++ b/chrome/common/page_load_metrics/page_load_timing.cc
@@ -14,11 +14,14 @@ StyleSheetTiming::~StyleSheetTiming() {}
bool StyleSheetTiming::operator==(const StyleSheetTiming& other) const {
return author_style_sheet_parse_duration_before_fcp ==
- other.author_style_sheet_parse_duration_before_fcp;
+ other.author_style_sheet_parse_duration_before_fcp &&
+ update_style_duration_before_fcp ==
+ other.update_style_duration_before_fcp;
}
bool StyleSheetTiming::IsEmpty() const {
- return !author_style_sheet_parse_duration_before_fcp;
+ return !author_style_sheet_parse_duration_before_fcp &&
+ !update_style_duration_before_fcp;
}
PageLoadTiming::PageLoadTiming() {}
« no previous file with comments | « chrome/common/page_load_metrics/page_load_timing.h ('k') | chrome/renderer/page_load_metrics/metrics_render_frame_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698