OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "media/audio/audio_manager.h" | 5 #include "media/audio/audio_manager.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... | |
24 g_audio_manager = NULL; | 24 g_audio_manager = NULL; |
25 } | 25 } |
26 | 26 |
27 // static | 27 // static |
28 AudioManager* AudioManager::Create() { | 28 AudioManager* AudioManager::Create() { |
29 AudioManager* ret = CreateAudioManager(); | 29 AudioManager* ret = CreateAudioManager(); |
30 DCHECK(ret == g_audio_manager); | 30 DCHECK(ret == g_audio_manager); |
31 ret->Init(); | 31 ret->Init(); |
32 return ret; | 32 return ret; |
33 } | 33 } |
34 | |
35 // static | |
36 AudioManager* AudioManager::Get() { | |
37 return g_audio_manager; | |
tommi (sloooow) - chröme
2012/02/21 21:04:08
See the comment above for g_audio_manager:
" // Us
jam
2012/02/21 21:09:47
got it. I didn't know you were planning on removin
tommi (sloooow) - chröme
2012/02/21 21:15:23
Yes, ContentBrowserClient.
| |
38 } | |
OLD | NEW |