summaryrefslogtreecommitdiffstats
path: root/device/battery
diff options
context:
space:
mode:
Diffstat (limited to 'device/battery')
-rw-r--r--device/battery/battery_status_manager_win.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/device/battery/battery_status_manager_win.cc b/device/battery/battery_status_manager_win.cc
index 6ad13da..50ceac7 100644
--- a/device/battery/battery_status_manager_win.cc
+++ b/device/battery/battery_status_manager_win.cc
@@ -160,18 +160,16 @@ class BatteryStatusManagerWin : public BatteryStatusManager {
public:
explicit BatteryStatusManagerWin(const BatteryCallback& callback)
: battery_observer_(new BatteryStatusObserver(callback)) {}
- virtual ~BatteryStatusManagerWin() { battery_observer_->Stop(); }
+ ~BatteryStatusManagerWin() override { battery_observer_->Stop(); }
public:
// BatteryStatusManager:
- virtual bool StartListeningBatteryChange() override {
+ bool StartListeningBatteryChange() override {
battery_observer_->Start();
return true;
}
- virtual void StopListeningBatteryChange() override {
- battery_observer_->Stop();
- }
+ void StopListeningBatteryChange() override { battery_observer_->Stop(); }
private:
scoped_ptr<BatteryStatusObserver> battery_observer_;