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 ef498c9b3de5b979b2be7dd6c2c5b25844dac89f..986a57de0c99eeb53d3b25b56aa32bcc954d2965 100644 |
--- a/content/renderer/media/android/webmediaplayer_android.cc |
+++ b/content/renderer/media/android/webmediaplayer_android.cc |
@@ -219,8 +219,8 @@ void WebMediaPlayerAndroid::load(LoadType load_type, |
manager_->Initialize( |
player_type_, player_id_, url, first_party_url, demuxer_client_id); |
- if (manager_->IsInFullscreen(frame_)) |
- manager_->EnterFullscreen(player_id_); |
+ if (manager_->ShouldEnterFullscreen(frame_)) |
+ manager_->EnterFullscreen(player_id_, frame_); |
UpdateNetworkState(WebMediaPlayer::NetworkStateLoading); |
UpdateReadyState(WebMediaPlayer::ReadyStateHaveNothing); |
@@ -1404,7 +1404,7 @@ void WebMediaPlayerAndroid::DoReleaseRemotePlaybackTexture(uint32 sync_point) { |
void WebMediaPlayerAndroid::enterFullscreen() { |
if (manager_->CanEnterFullscreen(frame_)) { |
- manager_->EnterFullscreen(player_id_); |
+ manager_->EnterFullscreen(player_id_, frame_); |
SetNeedsEstablishPeer(false); |
} |
} |