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

Unified Diff: media/audio/audio_manager.cc

Issue 9433006: Remove GetAudioManager and GetMediaStreamManager from ResourceContext. The reason is the content mo… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 10 months 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
« no previous file with comments | « content/test/webrtc_audio_device_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager.cc
===================================================================
--- media/audio/audio_manager.cc (revision 123165)
+++ media/audio/audio_manager.cc (working copy)
@@ -8,26 +8,18 @@
#include "base/logging.h"
#include "base/message_loop.h"
-// Used only to make sure we never create more than one instance.
-static AudioManager* g_audio_manager = NULL;
-
// Forward declaration of the platform specific AudioManager factory function.
AudioManager* CreateAudioManager();
AudioManager::AudioManager() {
- CHECK(g_audio_manager == NULL);
- g_audio_manager = this;
}
AudioManager::~AudioManager() {
- CHECK(g_audio_manager == this);
- g_audio_manager = NULL;
}
// static
AudioManager* AudioManager::Create() {
AudioManager* ret = CreateAudioManager();
- DCHECK(ret == g_audio_manager);
ret->Init();
return ret;
}
« no previous file with comments | « content/test/webrtc_audio_device_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698