Fix an issue that MediaController is disaled when entering fullscreen
commit34f933929e45d28494d20788fb3950f68cb2513d
authorqinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 16 Jan 2014 23:41:53 +0000 (16 23:41 +0000)
committerqinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 16 Jan 2014 23:41:53 +0000 (16 23:41 +0000)
tree7b8b3559995992295b2ccaf468a20d3f5ee67bb0
parent54dd8abe2b7a7687c82aa8bddf1c8fd2dea1b10b
Fix an issue that MediaController is disaled when entering fullscreen

In the old contentVideoView.java, we create the MediaController first in the openVideo() call.
Then we call updateMediaMetadata() to enable to media controller and set the metadata.
With ContentVideoViewLegacy.java, the ordering between updateMediaMetadata() and mediaController creation is reversed. That causes the controller to become disabled.
This change posts a task when RequestMediaMetadata() is called to solve the above issue, and to avoid the reentrance issue.

BUG=334635

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245376 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/android/content_video_view.cc
content/browser/android/content_video_view.h
content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java