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

Unified Diff: components/ukm/ukm_source.h

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_service.cc ('k') | components/ukm/ukm_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ukm/ukm_source.h
diff --git a/components/ukm/ukm_source.h b/components/ukm/ukm_source.h
index d2d99ebf957d493cd45386a67ab84481bef33553..ce5ad57295f368df2acad67045382a9a28bdf190 100644
--- a/components/ukm/ukm_source.h
+++ b/components/ukm/ukm_source.h
@@ -25,25 +25,15 @@ class UkmSource {
int32_t id() const { return id_; }
void set_id(int32_t id) { id_ = id; }
- const GURL& committed_url() const { return committed_url_; }
- void set_committed_url(const GURL& committed_url) {
- committed_url_ = committed_url;
- }
-
- base::TimeDelta first_contentful_paint() const {
- return first_contentful_paint_;
- }
- void set_first_contentful_paint(base::TimeDelta first_contentful_paint) {
- first_contentful_paint_ = first_contentful_paint;
- }
+ const GURL& url() const { return url_; }
+ void set_url(const GURL& url) { url_ = url; }
// Serializes the members of the class into the supplied proto.
- void PopulateProto(Source* proto_source);
+ void PopulateProto(Source* proto_source) const;
private:
int32_t id_;
- GURL committed_url_;
- base::TimeDelta first_contentful_paint_;
+ GURL url_;
DISALLOW_COPY_AND_ASSIGN(UkmSource);
};
« no previous file with comments | « components/ukm/ukm_service.cc ('k') | components/ukm/ukm_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698