Fix BrowserMediaPlayerManager::RequestFullscreen().
commit3cf93f639a4dffcf559016186992b10c74bcd13d
authorxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 13 Jun 2014 06:50:02 +0000 (13 06:50 +0000)
committerxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 13 Jun 2014 06:50:02 +0000 (13 06:50 +0000)
tree9b5295c958ce34a1163072af697d39879d2ac3cf
parentd89b1c7693557c7f6efc4319d18a447ba71f9d17
Fix BrowserMediaPlayerManager::RequestFullscreen().

Previously we send an IPC message to the renderer side when RequestFullscreen()
is called. This IPC message sending code was removed in r273600. Now user has to
click the fullscreen button to start playback in L1 mode, which isn't intuitive.
This CL fixes this issue so that when user click play, the video automatically
enters fullscreen mode and starts playback. This was the behavior before we had
the --disable-gesture-requirement-for-media-fullscreen flag.

Note that MediaSourceDelegate guarantees that we only call Start() after the
SetCdm() is called if any stream is encrytped.

BUG=383080
TEST=L1 video starts to play in fullscreen mode automatically.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276947 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/media/android/browser_media_player_manager.cc