| Index: content/renderer/media/android/webmediaplayer_android.cc
|
| diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc
|
| index feec4212bfc7871a51159822b1fff6282eea7ce0..5935067beed83731066e68ae0bfeaff8dc1a19d4 100644
|
| --- a/content/renderer/media/android/webmediaplayer_android.cc
|
| +++ b/content/renderer/media/android/webmediaplayer_android.cc
|
| @@ -1246,11 +1246,11 @@ void WebMediaPlayerAndroid::OnShown() {
|
| play();
|
| }
|
|
|
| -void WebMediaPlayerAndroid::OnSuspendRequested(bool must_suspend) {
|
| +bool WebMediaPlayerAndroid::OnSuspendRequested(bool must_suspend) {
|
| if (!must_suspend &&
|
| base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kDisableMediaSuspend)) {
|
| - return;
|
| + return true;
|
| }
|
|
|
| // If we're idle or playing video, pause and release resources; audio only
|
| @@ -1259,6 +1259,8 @@ void WebMediaPlayerAndroid::OnSuspendRequested(bool must_suspend) {
|
| (hasVideo() && !IsBackgroundVideoCandidate())) {
|
| SuspendAndReleaseResources();
|
| }
|
| +
|
| + return true;
|
| }
|
|
|
| void WebMediaPlayerAndroid::OnPlay() {
|
|
|