power_monitor_device_source.cc 559 B

1234567891011121314151617181920212223
  1. // Copyright 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "base/power_monitor/power_monitor_device_source.h"
  5. #include "build/build_config.h"
  6. namespace base {
  7. PowerMonitorDeviceSource::PowerMonitorDeviceSource() {
  8. #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_WIN)
  9. PlatformInit();
  10. #endif
  11. }
  12. PowerMonitorDeviceSource::~PowerMonitorDeviceSource() {
  13. #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_WIN)
  14. PlatformDestroy();
  15. #endif
  16. }
  17. } // namespace base