| Index: content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java b/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java
|
| index a29a3a3ddbff64826fa767220a2da37c890e60e3..01855118ed6a780c4ea7c47eef878255e4caa36d 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java
|
| @@ -418,13 +418,15 @@ public class ContentVideoView extends FrameLayout
|
|
|
| @CalledByNative
|
| private static ContentVideoView createContentVideoView(
|
| - Context context, long nativeContentVideoView, ContentVideoViewClient client) {
|
| + ContentViewCore contentViewCore, long nativeContentVideoView) {
|
| ThreadUtils.assertOnUiThread();
|
| // The context needs be Activity to create the ContentVideoView correctly.
|
| + Context context = contentViewCore.getContext();
|
| if (!isActivityContext(context)) {
|
| Log.e(TAG, "Wrong type of context, can't create fullscreen video");
|
| return null;
|
| }
|
| + ContentVideoViewClient client = contentViewCore.getContentVideoViewClient();
|
| ContentVideoView videoView = new ContentVideoView(context, nativeContentVideoView, client);
|
| client.enterFullscreenVideo(videoView);
|
| return videoView;
|
|
|