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

Side by Side Diff: chrome/browser/chromeos/brightness_bubble.h

Issue 5734002: Continuation of CL 5685007, rename the singleton accessor method in more files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BRIGHTNESS_BUBBLE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_BRIGHTNESS_BUBBLE_H_
6 #define CHROME_BROWSER_CHROMEOS_BRIGHTNESS_BUBBLE_H_ 6 #define CHROME_BROWSER_CHROMEOS_BRIGHTNESS_BUBBLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/chromeos/setting_level_bubble.h" 10 #include "chrome/browser/chromeos/setting_level_bubble.h"
11 11
12 template <typename T> struct DefaultSingletonTraits; 12 template <typename T> struct DefaultSingletonTraits;
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 // Singleton class controlling brightness bubble. 16 // Singleton class controlling brightness bubble.
17 class BrightnessBubble : public SettingLevelBubble { 17 class BrightnessBubble : public SettingLevelBubble {
18 public: 18 public:
19 static BrightnessBubble* instance(); 19 static BrightnessBubble* GetInstance();
20 20
21 private: 21 private:
22 friend struct DefaultSingletonTraits<BrightnessBubble>; 22 friend struct DefaultSingletonTraits<BrightnessBubble>;
23 23
24 BrightnessBubble(); 24 BrightnessBubble();
25 virtual ~BrightnessBubble() {} 25 virtual ~BrightnessBubble() {}
26 26
27 DISALLOW_COPY_AND_ASSIGN(BrightnessBubble); 27 DISALLOW_COPY_AND_ASSIGN(BrightnessBubble);
28 }; 28 };
29 29
30 } // namespace chromeos 30 } // namespace chromeos
31 31
32 #endif // CHROME_BROWSER_CHROMEOS_BRIGHTNESS_BUBBLE_H_ 32 #endif // CHROME_BROWSER_CHROMEOS_BRIGHTNESS_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698