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

Unified Diff: media/audio/audio_input_device.cc

Issue 11166002: Plumb render view ID from audio-related code in renderer through IPCs to AudioRendererHost in brows… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 8 years, 2 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: media/audio/audio_input_device.cc
diff --git a/media/audio/audio_input_device.cc b/media/audio/audio_input_device.cc
index e4577879900d11a47a7b13798d80e48e16bae008..1375ae9909cd1abb1e9ce9b1072990a56a429fa5 100644
--- a/media/audio/audio_input_device.cc
+++ b/media/audio/audio_input_device.cc
@@ -40,12 +40,12 @@ class AudioInputDevice::AudioThreadCallback
};
AudioInputDevice::AudioInputDevice(
- AudioInputIPC* ipc,
+ scoped_ptr<AudioInputIPC> ipc,
const scoped_refptr<base::MessageLoopProxy>& io_loop)
: ScopedLoopObserver(io_loop),
callback_(NULL),
event_handler_(NULL),
- ipc_(ipc),
+ ipc_(ipc.Pass()),
stream_id_(0),
session_id_(0),
pending_device_ready_(false),
@@ -209,7 +209,7 @@ void AudioInputDevice::OnDeviceReady(const std::string& device_id) {
}
void AudioInputDevice::OnIPCClosed() {
- ipc_ = NULL;
+ ipc_.reset();
}
AudioInputDevice::~AudioInputDevice() {

Powered by Google App Engine
This is Rietveld 408576698