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

Unified Diff: chromecast/browser/cast_browser_main_parts.cc

Issue 1113053002: Set the AudioManager factory before the browser main loop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | chromecast/browser/media/audio_manager_factory_simple.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_browser_main_parts.cc
diff --git a/chromecast/browser/cast_browser_main_parts.cc b/chromecast/browser/cast_browser_main_parts.cc
index 1c0ca15f666b4b12fd6f83723ce5ef0a60597811..a4a8cea125cc3d11786a449c3e82fa3eb85a6263 100644
--- a/chromecast/browser/cast_browser_main_parts.cc
+++ b/chromecast/browser/cast_browser_main_parts.cc
@@ -140,6 +140,14 @@ void DeregisterKillOnAlarm() {
} // namespace
namespace chromecast {
+
+namespace media {
+// Forward declaration of setter for audio manager factory. This method should
+// call ::media::AudioManager::SetAudioManagerFactory to provide a platform
+// implmentation of AudioManager.
+void SetPlatformAudioManagerFactory();
gunsch 2015/04/30 15:50:38 This interface probably lives better somewhere lik
+}
+
namespace shell {
namespace {
@@ -212,6 +220,9 @@ void CastBrowserMainParts::PreMainMessageLoopStart() {
// Net/DNS metrics.
metrics::PreregisterAllGroupedHistograms();
+ // Set the platform's implementation of AudioManager factory.
+ ::chromecast::media::SetPlatformAudioManagerFactory();
+
#if defined(OS_ANDROID)
net::NetworkChangeNotifier::SetFactory(
new net::NetworkChangeNotifierFactoryAndroid());
« no previous file with comments | « no previous file | chromecast/browser/media/audio_manager_factory_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698