 -class LatencyTracker {
 +class UI_LATENCY_EXPORT LatencyTracker {
   public:
-   LatencyTracker() = default;
-   ~LatencyTracker() = default;
+   explicit LatencyTracker(bool metric_sampling,
+                           ukm::SourceId ukm_source_id = ukm::kInvalidSourceId);
 diff --git a/ui/latency/ui_latency_export.h b/ui/latency/ui_latency_export.h
 new file mode 100644
 index 0000000..f24ee91

diff --git a/ui/latency/BUILD.gn b/ui/latency/BUILD.gn
index 139001ef6b91..dcf47174951e 100644
--- a/ui/latency/BUILD.gn
+++ b/ui/latency/BUILD.gn
@@ -4,19 +4,22 @@
 
 import("//testing/test.gni")
 
-source_set("latency") {
+component("latency") {
   sources = [
     "latency_histogram_macros.h",

   struct LatencyComponent {
     // Nondecreasing number that can be used to determine what events happened
diff --git a/ui/latency/latency_tracker.h b/ui/latency/latency_tracker.h
index 24397fc4ba6d..ad943fa7ccf7 100644
--- a/ui/latency/latency_tracker.h
+++ b/ui/latency/latency_tracker.h
@@ -8,12 +8,13 @@
 #include "base/macros.h"
 #include "services/metrics/public/cpp/ukm_source_id.h"
 #include "ui/latency/latency_info.h"
+#include "ui/latency/ui_latency_export.h"
 
