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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/volume_bubble.cc
diff --git a/chrome/browser/chromeos/volume_bubble.cc b/chrome/browser/chromeos/volume_bubble.cc
index f1850bed001e2e9fb9d9498c221d19deaff245bf..dc5871374bbdbe35c78e9669e3e3807d774ba6e5 100644
--- a/chrome/browser/chromeos/volume_bubble.cc
+++ b/chrome/browser/chromeos/volume_bubble.cc
@@ -19,4 +19,9 @@ VolumeBubble::VolumeBubble()
IDR_VOLUME_BUBBLE_MUTE_ICON)) {
}
+// static
+VolumeBubble* VolumeBubble::instance() {
+ return Singleton<VolumeBubble>::get();
+}
+
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698