summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/audio_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/audio_handler.cc')
-rw-r--r--chrome/browser/chromeos/audio_handler.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/audio_handler.cc b/chrome/browser/chromeos/audio_handler.cc
index a463e29..2f6638f 100644
--- a/chrome/browser/chromeos/audio_handler.cc
+++ b/chrome/browser/chromeos/audio_handler.cc
@@ -7,6 +7,7 @@
#include <math.h>
#include "base/logging.h"
+#include "base/singleton.h"
#include "chrome/browser/chromeos/pulse_audio_mixer.h"
namespace chromeos {
@@ -168,4 +169,9 @@ double AudioHandler::PercentToVolumeDb(double volume_percent) {
(kMaxVolumeDb - kMinVolumeDb) + kMinVolumeDb;
}
+// static
+AudioHandler* AudioHandler::instance() {
+ return Singleton<AudioHandler>::get();
+}
+
} // namespace chromeos