diff options
Diffstat (limited to 'base/system_monitor.cc')
-rw-r--r-- | base/system_monitor.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/system_monitor.cc b/base/system_monitor.cc index cf946a7..44cdce5 100644 --- a/base/system_monitor.cc +++ b/base/system_monitor.cc @@ -60,17 +60,17 @@ void SystemMonitor::RemoveObserver(PowerObserver* obs) { void SystemMonitor::NotifyPowerStateChange() { LOG(INFO) << L"PowerStateChange: " << (BatteryPower() ? L"On" : L"Off") << L" battery"; - observer_list_->Notify(&PowerObserver::OnPowerStateChange, this); + observer_list_->Notify(&PowerObserver::OnPowerStateChange, BatteryPower()); } void SystemMonitor::NotifySuspend() { LOG(INFO) << L"Power Suspending"; - observer_list_->Notify(&PowerObserver::OnSuspend, this); + observer_list_->Notify(&PowerObserver::OnSuspend); } void SystemMonitor::NotifyResume() { LOG(INFO) << L"Power Resuming"; - observer_list_->Notify(&PowerObserver::OnResume, this); + observer_list_->Notify(&PowerObserver::OnResume); } // static |