Revert of Fix autoplay during prerendering for media elements on Android. (patchset...
commit1b09bd614c0387158777f703cdb675384a35add3
authoryukishiino <yukishiino@chromium.org>
Fri, 21 Aug 2015 05:23:58 +0000 (20 22:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 21 Aug 2015 05:24:32 +0000 (21 05:24 +0000)
tree253a2df33cc2e22c39413a9afb175f2a3024ee47
parentdaf87f9a8e36508aee4bafef36efb3148f9e967b
Revert of Fix autoplay during prerendering for media elements on Android. (patchset #4 id:60001 of https://codereview.chromium.org/1293253003/ )

Reason for revert:
https://build.chromium.org/p/chromium.linux/builders/Linux%20Builder%20%28dbg%29/builds/92412/steps/compile/logs/stdio

This CL seems redefining MediaBrowserTest, which is already defined in chrome/browser/media/media_browsertest.h
and causing build breakage.

Original issue's description:
> Fix autoplay during prerendering for media elements on Android.
>
> If the user gesture for autoplay is disabled manually or via an
> experiment, prerendered media will play in a hidden frame.
>
> Within WebMediaPlayerImpl this behavior is deferred at load time
> via a callback, however WebMediaPlayerAndroid was never given
> this callback, so it would try to play media.  Generally this
> fails because by default autoplay requires a user gesture.
>
> The correct fix is to refactor WMPA such that it uses a params
> structure like WMPI and can invoke the deferral callback when
> load() is called.
>
> BUG=522157
> TEST=clank no longer plays hidden a/v when user gesture disabled.
>
> Committed: https://crrev.com/98fc72cda10bf328ad55e460f6a7b06a356d5b3d
> Cr-Commit-Position: refs/heads/master@{#344676}

TBR=creis@chromium.org,qinmin@chromium.org,dalecurtis@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=522157

Review URL: https://codereview.chromium.org/1305973002

Cr-Commit-Position: refs/heads/master@{#344682}
chrome/browser/media/defer_background_media_browsertest.cc
content/renderer/media/android/webmediaplayer_android.cc
content/renderer/media/android/webmediaplayer_android.h
content/renderer/render_frame_impl.cc
content/renderer/render_frame_impl.h