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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 8818012: Remove the AudioManager singleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Set svn eol properties for a couple of files Created 9 years 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 | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/speech/chrome_speech_input_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.cc
===================================================================
--- chrome/browser/profiles/profile_io_data.cc (revision 114012)
+++ chrome/browser/profiles/profile_io_data.cc (working copy)
@@ -52,6 +52,7 @@
#include "content/browser/resource_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_service.h"
+#include "media/audio/audio_manager.h"
#include "net/base/origin_bound_cert_service.h"
#include "net/http/http_transaction_factory.h"
#include "net/http/http_util.h"
@@ -223,6 +224,7 @@
params->referrer_charset = default_charset;
params->io_thread = g_browser_process->io_thread();
+ params->audio_manager = g_browser_process->audio_manager();
params->host_content_settings_map = profile->GetHostContentSettingsMap();
params->cookie_settings = CookieSettings::GetForProfile(profile);
@@ -496,7 +498,8 @@
job_factory_->AddInterceptor(new chromeos::GViewRequestInterceptor);
#endif // defined(OS_CHROMEOS) && !defined(GOOGLE_CHROME_BUILD)
- media_stream_manager_.reset(new media_stream::MediaStreamManager);
+ media_stream_manager_.reset(
+ new media_stream::MediaStreamManager(profile_params_->audio_manager));
// Take ownership over these parameters.
database_tracker_ = profile_params_->database_tracker;
@@ -523,6 +526,7 @@
io_thread_globals->media.media_internals.get());
resource_context_.set_download_id_factory(download_id_factory_);
resource_context_.set_media_stream_manager(media_stream_manager_.get());
+ resource_context_.set_audio_manager(profile_params_->audio_manager);
LazyInitializeInternal(profile_params_.get());
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/speech/chrome_speech_input_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698