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

Unified Diff: content/browser/renderer_host/media/audio_input_renderer_host.cc

Issue 10662049: Move the device enumerate/open/close work to device thread from IO thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed Magnus' comments. Created 8 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/renderer_host/media/audio_input_renderer_host.cc
diff --git a/content/browser/renderer_host/media/audio_input_renderer_host.cc b/content/browser/renderer_host/media/audio_input_renderer_host.cc
index 8362330b8797520bd23066b3a487326424fa6586..40b08115f908d56150a378ecaf2655d5dcb94a01 100644
--- a/content/browser/renderer_host/media/audio_input_renderer_host.cc
+++ b/content/browser/renderer_host/media/audio_input_renderer_host.cc
@@ -185,7 +185,7 @@ void AudioInputRendererHost::OnStartDevice(int stream_id, int session_id) {
// Get access to the AudioInputDeviceManager to start the device.
media_stream::AudioInputDeviceManager* audio_input_man =
media_stream::MediaStreamManager::GetForResourceContext(
- resource_context_, audio_manager_)->audio_input_device_manager();
+ resource_context_)->audio_input_device_manager();
// Add the session entry to the map.
session_entries_[session_id] = stream_id;
@@ -351,7 +351,7 @@ void AudioInputRendererHost::StopAndDeleteDevice(int session_id) {
media_stream::AudioInputDeviceManager* audio_input_man =
media_stream::MediaStreamManager::GetForResourceContext(
- resource_context_, audio_manager_)->audio_input_device_manager();
+ resource_context_)->audio_input_device_manager();
audio_input_man->Stop(session_id);
// Delete the session entry.

Powered by Google App Engine
This is Rietveld 408576698