| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "device/power_monitor/power_monitor_message_broadcaster.h" | 5 #include "services/device/power_monitor/power_monitor_message_broadcaster.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/power_monitor/power_monitor.h" | 8 #include "base/power_monitor/power_monitor.h" |
| 9 #include "mojo/public/cpp/bindings/strong_binding.h" | 9 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 10 | 10 |
| 11 namespace device { | 11 namespace device { |
| 12 | 12 |
| 13 PowerMonitorMessageBroadcaster::PowerMonitorMessageBroadcaster() { | 13 PowerMonitorMessageBroadcaster::PowerMonitorMessageBroadcaster() { |
| 14 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); | 14 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); |
| 15 if (power_monitor) | 15 if (power_monitor) |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 } | 50 } |
| 51 } | 51 } |
| 52 | 52 |
| 53 void PowerMonitorMessageBroadcaster::OnResume() { | 53 void PowerMonitorMessageBroadcaster::OnResume() { |
| 54 if (power_monitor_client_) { | 54 if (power_monitor_client_) { |
| 55 power_monitor_client_->Resume(); | 55 power_monitor_client_->Resume(); |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace device | 59 } // namespace device |
| OLD | NEW |