1 // Copyright 2013 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/power_monitor_device_source.h" 6 7 #include "build/build_config.h" 8 9 namespace base { 10 PowerMonitorDeviceSource()11PowerMonitorDeviceSource::PowerMonitorDeviceSource() { 12 #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_WIN) 13 PlatformInit(); 14 #endif 15 } 16 ~PowerMonitorDeviceSource()17PowerMonitorDeviceSource::~PowerMonitorDeviceSource() { 18 #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_WIN) 19 PlatformDestroy(); 20 #endif 21 } 22 23 } // namespace base 24