| Index: content/browser/media/capture/web_contents_audio_input_stream.cc
|
| diff --git a/content/browser/media/capture/web_contents_audio_input_stream.cc b/content/browser/media/capture/web_contents_audio_input_stream.cc
|
| index 629d1061f9f86f4763f7ecb6b514b64f0880995c..8fd1f976d59998ad91ecd67dc71de3b9f30a7193 100644
|
| --- a/content/browser/media/capture/web_contents_audio_input_stream.cc
|
| +++ b/content/browser/media/capture/web_contents_audio_input_stream.cc
|
| @@ -91,7 +91,7 @@ class WebContentsAudioInputStream::Impl
|
|
|
| // Called by WebContentsTracker when the target of the audio mirroring has
|
| // changed.
|
| - void OnTargetChanged(RenderWidgetHost* target);
|
| + void OnTargetChanged(bool had_target);
|
|
|
| // Injected dependencies.
|
| const int initial_render_process_id_;
|
| @@ -305,11 +305,10 @@ void WebContentsAudioInputStream::Impl::ReleaseInput(
|
| delete stream;
|
| }
|
|
|
| -void WebContentsAudioInputStream::Impl::OnTargetChanged(
|
| - RenderWidgetHost* target) {
|
| +void WebContentsAudioInputStream::Impl::OnTargetChanged(bool had_target) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
|
|
| - is_target_lost_ = !target;
|
| + is_target_lost_ = !had_target;
|
|
|
| if (state_ == MIRRORING) {
|
| if (is_target_lost_) {
|
|
|