Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java

Issue 597523003: Remove the legacy fullscreen video path in Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase correctly Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 156377047b1a67458df12d9bf853c9291e90c2df..0a204b894880cac5c19ff58a7710d0e89d9c01cc 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,21 +418,14 @@ public class ContentVideoView extends FrameLayout
@CalledByNative
private static ContentVideoView createContentVideoView(
- Context context, long nativeContentVideoView, ContentVideoViewClient client,
- boolean legacy) {
+ Context context, long nativeContentVideoView, ContentVideoViewClient client) {
ThreadUtils.assertOnUiThread();
// The context needs be Activity to create the ContentVideoView correctly.
if (!isActivityContext(context)) {
Log.e(TAG, "Wrong type of context, can't create fullscreen video");
return null;
}
- ContentVideoView videoView = null;
- if (legacy) {
- videoView = new ContentVideoViewLegacy(context, nativeContentVideoView, client);
- } else {
- videoView = new ContentVideoView(context, nativeContentVideoView, client);
- }
-
+ ContentVideoView videoView = new ContentVideoView(context, nativeContentVideoView, client);
if (videoView.getContentVideoViewClient().onShowCustomView(videoView)) {
return videoView;
}

Powered by Google App Engine
This is Rietveld 408576698