Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: device/battery/battery_status_manager_win.cc

Issue 1107433002: Update {virtual,override} to follow C++11 style in device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync and git cl format Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_adapter_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/battery/battery_status_manager_win.cc
diff --git a/device/battery/battery_status_manager_win.cc b/device/battery/battery_status_manager_win.cc
index 6ad13da8a4b6e68c2711d6271d69eb4ba622a4eb..50ceac758bde4f063585edeb997e7ecc989825c0 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_;
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_adapter_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698