[cobalt][LocalAggregation] Initialize steady clock in
EventAggregatorManager
Bug: 40853
Bug: 43080
Change-Id: I55ed08eae76ca93dc86b14f50640f448fd273dd7
diff --git a/src/local_aggregation/event_aggregator_mgr.cc b/src/local_aggregation/event_aggregator_mgr.cc
index 80502c6..204fdb6 100644
--- a/src/local_aggregation/event_aggregator_mgr.cc
+++ b/src/local_aggregation/event_aggregator_mgr.cc
@@ -12,6 +12,7 @@
using logger::kOther;
using logger::Status;
using util::ConsistentProtoStore;
+using util::SteadyClock;
using util::TimeToDayIndex;
EventAggregatorManager::EventAggregatorManager(const logger::Encoder* encoder,
@@ -30,6 +31,7 @@
std::make_unique<AggregateStore>(encoder, observation_writer, local_aggregate_proto_store,
obs_history_proto_store, backfill_days);
event_aggregator_ = std::make_unique<EventAggregator>(aggregate_store_.get());
+ steady_clock_ = std::make_unique<SteadyClock>();
}
void EventAggregatorManager::Start(std::unique_ptr<util::SystemClockInterface> clock) {