summaryrefslogtreecommitdiffstats
path: root/device/battery
diff options
context:
space:
mode:
authornick <nick@chromium.org>2015-04-23 12:40:30 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-23 19:41:20 +0000
commit77137323157640d3eecae553956425c067054383 (patch)
treea42493ae6eedbb46cd2b5585c66c341351058154 /device/battery
parent5eb91b27194d0065480930613c508deec54c0959 (diff)
downloadchromium_src-77137323157640d3eecae553956425c067054383.zip
chromium_src-77137323157640d3eecae553956425c067054383.tar.gz
chromium_src-77137323157640d3eecae553956425c067054383.tar.bz2
Update {virtual,override} to follow C++11 style in device.
The Google style guide states that only one of {virtual,override,final} should be used for each declaration, since override implies virtual and final implies both virtual and override. This patch was manually generated using a regex and a text editor. BUG=417463 Review URL: https://codereview.chromium.org/1107433002 Cr-Commit-Position: refs/heads/master@{#326609}
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_;