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

Unified Diff: media/audio/audio_input_controller.cc

Issue 14273018: Use the browser UI thread for audio on OSX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments. Created 7 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
« no previous file with comments | « media/audio/audio_input_controller.h ('k') | media/audio/audio_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_controller.cc
diff --git a/media/audio/audio_input_controller.cc b/media/audio/audio_input_controller.cc
index dd8ab7ca0d73337647e3252c84e308c2856c2fb9..36371cc47716457fec96e10425fe4d9b75957835 100644
--- a/media/audio/audio_input_controller.cc
+++ b/media/audio/audio_input_controller.cc
@@ -113,11 +113,10 @@ scoped_refptr<AudioInputController> AudioInputController::CreateLowLatency(
// static
scoped_refptr<AudioInputController> AudioInputController::CreateForStream(
- AudioManager* audio_manager,
+ const scoped_refptr<base::MessageLoopProxy>& message_loop,
EventHandler* event_handler,
AudioInputStream* stream,
SyncWriter* sync_writer) {
- DCHECK(audio_manager);
DCHECK(sync_writer);
DCHECK(stream);
@@ -125,7 +124,7 @@ scoped_refptr<AudioInputController> AudioInputController::CreateForStream(
// the audio-manager thread.
scoped_refptr<AudioInputController> controller(new AudioInputController(
event_handler, sync_writer));
- controller->message_loop_ = audio_manager->GetMessageLoop();
+ controller->message_loop_ = message_loop;
// TODO(miu): See TODO at top of file. Until that's resolved, we need to
// disable the error auto-detection here (since the audio mirroring
« no previous file with comments | « media/audio/audio_input_controller.h ('k') | media/audio/audio_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698