| Index: media/blink/webmediaplayer_impl.cc
|
| diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
|
| index 98b7e6b454afd2538629118c41797de3ec65f9af..38a3b80fb0a2a7733e04b47711d3eaee38dd20db 100644
|
| --- a/media/blink/webmediaplayer_impl.cc
|
| +++ b/media/blink/webmediaplayer_impl.cc
|
| @@ -2027,10 +2027,11 @@ WebMediaPlayerImpl::UpdatePlayState_ComputePlayState(bool is_remote,
|
| IsBackgroundedSuspendEnabled() && !IsResumeBackgroundVideosEnabled() &&
|
| is_backgrounded && hasVideo();
|
| bool can_play = !has_error && !is_remote && have_future_data;
|
| - bool has_remote_controls = can_play && !must_suspend && hasAudio() &&
|
| - !backgrounded_video_has_no_remote_controls;
|
| -
|
| - if (!has_remote_controls) {
|
| + bool has_remote_controls =
|
| + hasAudio() && !backgrounded_video_has_no_remote_controls;
|
| + bool alive = can_play && !must_suspend &&
|
| + (!background_suspended || has_remote_controls);
|
| + if (!alive) {
|
| result.delegate_state = DelegateState::GONE;
|
| result.is_idle = delegate_->IsIdle(delegate_id_);
|
| } else if (paused_) {
|
|
|