diff --git a/cobalt/h5vcc/h5vcc_metrics.h b/cobalt/h5vcc/h5vcc_metrics.h index 675e7e9cecb2..1d3a5ec30a79 100644 --- a/cobalt/h5vcc/h5vcc_metrics.h +++ b/cobalt/h5vcc/h5vcc_metrics.h @@ -77,7 +77,7 @@ class H5vccMetrics : public script::Wrappable { const cobalt::h5vcc::H5vccMetricType& metric_type, const std::string& serialized_proto); - h5vcc::MetricEventHandlerWrapper* uploader_callback_ = nullptr; + scoped_refptr uploader_callback_; std::unique_ptr run_event_handler_callback_;