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

Unified Diff: components/ukm/ukm_source.cc

Issue 2719823003: Convert first contentful paint logging to the new UKM client API (Closed)
Patch Set: renames Created 3 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
« no previous file with comments | « components/ukm/ukm_source.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ukm/ukm_source.cc
diff --git a/components/ukm/ukm_source.cc b/components/ukm/ukm_source.cc
index d521668bcec53e0dc327f11f481543957470c764..dc74b7d43cbb98fe89f0eb2b8a36cf64ac14a35b 100644
--- a/components/ukm/ukm_source.cc
+++ b/components/ukm/ukm_source.cc
@@ -13,14 +13,12 @@ UkmSource::UkmSource() = default;
UkmSource::~UkmSource() = default;
-void UkmSource::PopulateProto(Source* proto_source) {
+void UkmSource::PopulateProto(Source* proto_source) const {
DCHECK(!proto_source->has_id());
DCHECK(!proto_source->has_url());
proto_source->set_id(id_);
- proto_source->set_url(committed_url_.spec());
- proto_source->set_first_contentful_paint_msec(
- first_contentful_paint_.InMilliseconds());
+ proto_source->set_url(url_.spec());
}
} // namespace ukm
« no previous file with comments | « components/ukm/ukm_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698