1 // Copyright 2022 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "base/power_monitor/battery_state_sampler.h" 6 7 #include "base/power_monitor/iopm_power_source_sampling_event_source.h" 8 9 namespace base { 10 11 // static 12 std::unique_ptr<SamplingEventSource> CreateSamplingEventSource()13BatteryStateSampler::CreateSamplingEventSource() { 14 return std::make_unique<IOPMPowerSourceSamplingEventSource>(); 15 } 16 17 } // namespace base 18