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

Unified Diff: content/browser/media/capture/audio_mirroring_manager.cc

Issue 2668813002: Remove LazyInstance usage from media/ (Closed)
Patch Set: Fix presubmit comments. Created 3 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 | « no previous file | content/browser/media/cdm_registry_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/capture/audio_mirroring_manager.cc
diff --git a/content/browser/media/capture/audio_mirroring_manager.cc b/content/browser/media/capture/audio_mirroring_manager.cc
index 5de94815e15ce6718f33a1d5423033a6f1edc8e5..c7683cbc4b970ff3249c65fd8999d8ed332e1c77 100644
--- a/content/browser/media/capture/audio_mirroring_manager.cc
+++ b/content/browser/media/capture/audio_mirroring_manager.cc
@@ -8,20 +8,13 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
-#include "base/lazy_instance.h"
namespace content {
-namespace {
-
-base::LazyInstance<AudioMirroringManager>::Leaky g_audio_mirroring_manager =
- LAZY_INSTANCE_INITIALIZER;
-
-} // namespace
-
// static
AudioMirroringManager* AudioMirroringManager::GetInstance() {
- return g_audio_mirroring_manager.Pointer();
+ static AudioMirroringManager* manager = new AudioMirroringManager();
+ return manager;
}
AudioMirroringManager::AudioMirroringManager() {
« no previous file with comments | « no previous file | content/browser/media/cdm_registry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698