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

Side by Side Diff: chrome/browser/chromeos/volume_bubble.cc

Issue 5711001: Add a new GetInstance() method for remaining files with singleton classes under chrome/browser. (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 #include "chrome/browser/chromeos/volume_bubble.h" 5 #include "chrome/browser/chromeos/volume_bubble.h"
6 6
7 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "grit/theme_resources.h" 8 #include "grit/theme_resources.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
11 11
12 VolumeBubble::VolumeBubble() 12 VolumeBubble::VolumeBubble()
13 : SettingLevelBubble( 13 : SettingLevelBubble(
14 ResourceBundle::GetSharedInstance().GetBitmapNamed( 14 ResourceBundle::GetSharedInstance().GetBitmapNamed(
15 IDR_VOLUME_BUBBLE_UP_ICON), 15 IDR_VOLUME_BUBBLE_UP_ICON),
16 ResourceBundle::GetSharedInstance().GetBitmapNamed( 16 ResourceBundle::GetSharedInstance().GetBitmapNamed(
17 IDR_VOLUME_BUBBLE_DOWN_ICON), 17 IDR_VOLUME_BUBBLE_DOWN_ICON),
18 ResourceBundle::GetSharedInstance().GetBitmapNamed( 18 ResourceBundle::GetSharedInstance().GetBitmapNamed(
19 IDR_VOLUME_BUBBLE_MUTE_ICON)) { 19 IDR_VOLUME_BUBBLE_MUTE_ICON)) {
20 } 20 }
21 21
22 // static
23 VolumeBubble* VolumeBubble::instance() {
24 return Singleton<VolumeBubble>::get();
25 }
26
22 } // namespace chromeos 27 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698