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

Unified Diff: content/browser/media/webrtc/webrtc_audio_debug_recordings_browsertest.cc

Issue 2077983003: Intiialize AudioManager and related class lazily (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: content/browser/media/webrtc/webrtc_audio_debug_recordings_browsertest.cc
diff --git a/content/browser/media/webrtc/webrtc_audio_debug_recordings_browsertest.cc b/content/browser/media/webrtc/webrtc_audio_debug_recordings_browsertest.cc
index f098d77ae4e9de93e2607608dcd876222e807985..f98a7bd44b840ef5e43042c1388d96dc28d0beeb 100644
--- a/content/browser/media/webrtc/webrtc_audio_debug_recordings_browsertest.cc
+++ b/content/browser/media/webrtc/webrtc_audio_debug_recordings_browsertest.cc
@@ -8,6 +8,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
+#include "content/browser/browser_main_loop.h"
#include "content/browser/media/webrtc/webrtc_internals.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/test/browser_test_utils.h"
@@ -73,6 +74,10 @@ class WebRtcAudioDebugRecordingsBrowserTest : public WebRtcContentBrowserTest {
AppendUseFakeUIForMediaStreamFlag();
}
~WebRtcAudioDebugRecordingsBrowserTest() override {}
+
+ void SetUpOnMainThread() override {
+ BrowserMainLoop::GetInstance()->GetMediaStreamManager();
+ }
};
#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY)

Powered by Google App Engine
This is Rietveld 408576698