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

Side by Side Diff: chrome/browser/chromeos/power/power_prefs.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_CHROMEOS_POWER_POWER_PREFS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_POWER_PREFS_H_
6 #define CHROME_BROWSER_CHROMEOS_POWER_POWER_PREFS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POWER_POWER_PREFS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 22 matching lines...) Expand all
33 static void RegisterUserProfilePrefs( 33 static void RegisterUserProfilePrefs(
34 user_prefs::PrefRegistrySyncable* registry); 34 user_prefs::PrefRegistrySyncable* registry);
35 35
36 // Register power prefs with default values applicable to the login profile. 36 // Register power prefs with default values applicable to the login profile.
37 static void RegisterLoginProfilePrefs( 37 static void RegisterLoginProfilePrefs(
38 user_prefs::PrefRegistrySyncable* registry); 38 user_prefs::PrefRegistrySyncable* registry);
39 39
40 // content::NotificationObserver: 40 // content::NotificationObserver:
41 virtual void Observe(int type, 41 virtual void Observe(int type,
42 const content::NotificationSource& source, 42 const content::NotificationSource& source,
43 const content::NotificationDetails& details) OVERRIDE; 43 const content::NotificationDetails& details) override;
44 44
45 void UpdatePowerPolicyFromPrefs(); 45 void UpdatePowerPolicyFromPrefs();
46 46
47 private: 47 private:
48 friend class PowerPrefsTest; 48 friend class PowerPrefsTest;
49 49
50 // Register power prefs whose default values are the same in user profiles and 50 // Register power prefs whose default values are the same in user profiles and
51 // the login profile. 51 // the login profile.
52 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 52 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
53 53
54 void SetProfile(Profile* profile); 54 void SetProfile(Profile* profile);
55 55
56 PowerPolicyController* power_policy_controller_; // Not owned. 56 PowerPolicyController* power_policy_controller_; // Not owned.
57 57
58 content::NotificationRegistrar notification_registrar_; 58 content::NotificationRegistrar notification_registrar_;
59 59
60 Profile* profile_; // Not owned. 60 Profile* profile_; // Not owned.
61 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; 61 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(PowerPrefs); 63 DISALLOW_COPY_AND_ASSIGN(PowerPrefs);
64 }; 64 };
65 65
66 } // namespace chromeos 66 } // namespace chromeos
67 67
68 #endif // CHROME_BROWSER_CHROMEOS_POWER_POWER_PREFS_H_ 68 #endif // CHROME_BROWSER_CHROMEOS_POWER_POWER_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/power/power_data_collector_unittest.cc ('k') | chrome/browser/chromeos/power/power_prefs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698