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

Unified Diff: chromecast/browser/cast_browser_main_parts.cc

Issue 1908423006: Allow content embedders to create AudioManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ScopedAudioManagerPtr instead of raw pointer Created 4 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/cast_content_browser_client.h » ('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 ed7cd4fe7a60f1d937f0768e7aa7eb8e1aa0eacf..970254bdab5edf4765a23203af936304e550a384 100644
--- a/chromecast/browser/cast_browser_main_parts.cc
+++ b/chromecast/browser/cast_browser_main_parts.cc
@@ -37,7 +37,6 @@
#include "chromecast/browser/url_request_context_factory.h"
#include "chromecast/chromecast_features.h"
#include "chromecast/common/platform_client_auth.h"
-#include "chromecast/media/audio/cast_audio_manager_factory.h"
#include "chromecast/media/base/key_systems_common.h"
#include "chromecast/media/base/media_message_loop.h"
#include "chromecast/media/base/media_resource_tracker.h"
@@ -54,7 +53,6 @@
#include "content/public/browser/storage_partition.h"
#include "content/public/common/content_switches.h"
#include "gpu/command_buffer/service/gpu_switches.h"
-#include "media/audio/audio_manager.h"
#include "media/base/media.h"
#include "ui/compositor/compositor_switches.h"
@@ -348,11 +346,6 @@ int CastBrowserMainParts::PreCreateThreads() {
// Hook for internal code
cast_browser_process_->browser_client()->PreCreateThreads();
- // AudioManager is created immediately after threads are created, requiring
- // AudioManagerFactory to be set beforehand.
- ::media::AudioManager::SetFactory(
- new media::CastAudioManagerFactory(media_pipeline_backend_manager()));
-
// Set GL strings so GPU config code can make correct feature blacklisting/
// whitelisting decisions.
// Note: SetGLStrings can be called before GpuDataManager::Initialize.
« no previous file with comments | « no previous file | chromecast/browser/cast_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698