Index: media/blink/webmediaplayer_impl.cc |
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc |
index 1c0e215649791c3794e6eebccd40fa29f221163a..96ba8b569f4cc125fcd33c88f230e590f4ec849a 100644 |
--- a/media/blink/webmediaplayer_impl.cc |
+++ b/media/blink/webmediaplayer_impl.cc |
@@ -130,6 +130,10 @@ bool IsBackgroundVideoTrackOptimizationEnabled() { |
return base::FeatureList::IsEnabled(kBackgroundVideoTrackOptimization); |
} |
+bool IsBackgroundVideoPauseOptimizationEnabled() { |
+ return base::FeatureList::IsEnabled(kBackgroundVideoPauseOptimization); |
+} |
+ |
bool IsNetworkStateError(blink::WebMediaPlayer::NetworkState state) { |
bool result = state == blink::WebMediaPlayer::kNetworkStateFormatError || |
state == blink::WebMediaPlayer::kNetworkStateNetworkError || |
@@ -2201,7 +2205,7 @@ bool WebMediaPlayerImpl::ShouldPauseVideoWhenHidden() const { |
// Otherwise only pause if the optimization is on and it's a video-only |
// optimization candidate. |
- return IsBackgroundVideoTrackOptimizationEnabled() && !HasAudio() && |
+ return IsBackgroundVideoPauseOptimizationEnabled() && !HasAudio() && |
IsBackgroundOptimizationCandidate(); |
} |