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

Side by Side Diff: content/browser/battery_status/battery_status_manager_default.cc

Issue 634703003: Replacing the OVERRIDE with override and FINAL with final in content/browser/[accessibility|battery… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/browser/battery_status/battery_status_manager.h" 5 #include "content/browser/battery_status/battery_status_manager.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 namespace { 11 namespace {
12 12
13 class BatteryStatusManagerDefault : public BatteryStatusManager { 13 class BatteryStatusManagerDefault : public BatteryStatusManager {
14 public: 14 public:
15 explicit BatteryStatusManagerDefault( 15 explicit BatteryStatusManagerDefault(
16 const BatteryStatusService::BatteryUpdateCallback& callback) {} 16 const BatteryStatusService::BatteryUpdateCallback& callback) {}
17 virtual ~BatteryStatusManagerDefault() {} 17 virtual ~BatteryStatusManagerDefault() {}
18 18
19 private: 19 private:
20 // BatteryStatusManager: 20 // BatteryStatusManager:
21 virtual bool StartListeningBatteryChange() OVERRIDE { 21 virtual bool StartListeningBatteryChange() override {
22 NOTIMPLEMENTED(); 22 NOTIMPLEMENTED();
23 return false; 23 return false;
24 } 24 }
25 25
26 virtual void StopListeningBatteryChange() OVERRIDE { NOTIMPLEMENTED(); } 26 virtual void StopListeningBatteryChange() override { NOTIMPLEMENTED(); }
27 27
28 DISALLOW_COPY_AND_ASSIGN(BatteryStatusManagerDefault); 28 DISALLOW_COPY_AND_ASSIGN(BatteryStatusManagerDefault);
29 }; 29 };
30 30
31 } // namespace 31 } // namespace
32 32
33 // static 33 // static
34 scoped_ptr<BatteryStatusManager> BatteryStatusManager::Create( 34 scoped_ptr<BatteryStatusManager> BatteryStatusManager::Create(
35 const BatteryStatusService::BatteryUpdateCallback& callback) { 35 const BatteryStatusService::BatteryUpdateCallback& callback) {
36 return scoped_ptr<BatteryStatusManager>( 36 return scoped_ptr<BatteryStatusManager>(
37 new BatteryStatusManagerDefault(callback)); 37 new BatteryStatusManagerDefault(callback));
38 } 38 }
39 39
40 } // namespace content 40 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698