| Index: content/browser/android/media_player_manager_android.cc
|
| diff --git a/content/browser/android/media_player_manager_android.cc b/content/browser/android/media_player_manager_android.cc
|
| index ef650286e98e604102be1ff23d8b357a45741ef2..7ea575eba1a23d522daeb72916225f3590195f9b 100644
|
| --- a/content/browser/android/media_player_manager_android.cc
|
| +++ b/content/browser/android/media_player_manager_android.cc
|
| @@ -5,6 +5,7 @@
|
| #include "content/browser/android/media_player_manager_android.h"
|
|
|
| #include "base/bind.h"
|
| +#include "content/browser/android/content_view_core_impl.h"
|
| #include "content/browser/android/media_resource_getter_impl.h"
|
| #include "content/browser/web_contents/web_contents_view_android.h"
|
| #include "content/common/media/media_player_messages.h"
|
| @@ -12,6 +13,7 @@
|
| #include "content/public/browser/render_process_host.h"
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/storage_partition.h"
|
| +#include "content/public/browser/web_contents.h"
|
|
|
| using media::MediaPlayerBridge;
|
|
|
| @@ -157,7 +159,12 @@ void MediaPlayerManagerAndroid::OnEnterFullscreen(int player_id) {
|
| DCHECK_EQ(fullscreen_player_id_, -1);
|
|
|
| fullscreen_player_id_ = player_id;
|
| - video_view_.CreateContentVideoView();
|
| + WebContents* web_contents =
|
| + WebContents::FromRenderViewHost(render_view_host());
|
| + ContentViewCoreImpl* content_view_core_impl =
|
| + ContentViewCoreImpl::FromWebContents(web_contents);
|
| + video_view_.CreateContentVideoView(
|
| + content_view_core_impl->GetContentVideoViewClient());
|
| }
|
|
|
| void MediaPlayerManagerAndroid::OnExitFullscreen(int player_id) {
|
|
|