| Index: media/blink/webmediaplayer_impl.cc
|
| diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
|
| index fa8a90108e049dc4b1464fe5885913816da312dd..ffe116b5605b10b7fcf73d87a56edfe7a73e72a8 100644
|
| --- a/media/blink/webmediaplayer_impl.cc
|
| +++ b/media/blink/webmediaplayer_impl.cc
|
| @@ -2153,6 +2153,16 @@ void WebMediaPlayerImpl::ActivateViewportIntersectionMonitoring(bool activate) {
|
| client_->activateViewportIntersectionMonitoring(activate);
|
| }
|
|
|
| +// TODO(avayvod): Revert after merging into 58 so we keep getting data on the
|
| +// background video pause behavior on desktop. See https://crbug.com/699106.
|
| +#if !defined(OS_ANDROID)
|
| +
|
| +bool WebMediaPlayerImpl::ShouldPauseVideoWhenHidden() const {
|
| + return false;
|
| +}
|
| +
|
| +#else // !defined(OS_ANDROID)
|
| +
|
| bool WebMediaPlayerImpl::ShouldPauseVideoWhenHidden() const {
|
| // If suspending background video, pause any video that's not remoted or
|
| // not unlocked to play in the background.
|
| @@ -2176,6 +2186,8 @@ bool WebMediaPlayerImpl::ShouldPauseVideoWhenHidden() const {
|
| IsBackgroundOptimizationCandidate();
|
| }
|
|
|
| +#endif // !defined(OS_ANDROID)
|
| +
|
| bool WebMediaPlayerImpl::ShouldDisableVideoWhenHidden() const {
|
| // This optimization is behind the flag on all platforms.
|
| if (!IsBackgroundVideoTrackOptimizationEnabled())
|
|
|