Index: content/shell/android/java/src/org/chromium/content_shell/ShellManager.java |
diff --git a/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java b/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java |
index aab6caa67fffbd35d92fe2bbbc134017acd6c37f..2ebbcb3842a0225ed8eb90da8a725839f2c17581 100644 |
--- a/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java |
+++ b/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java |
@@ -12,7 +12,6 @@ import android.view.View; |
import android.widget.FrameLayout; |
import org.chromium.base.CalledByNative; |
-import org.chromium.base.CommandLine; |
import org.chromium.base.JNINamespace; |
import org.chromium.base.ThreadUtils; |
import org.chromium.content.browser.ActivityContentVideoViewClient; |
@@ -20,7 +19,6 @@ import org.chromium.content.browser.ContentVideoViewClient; |
import org.chromium.content.browser.ContentViewClient; |
import org.chromium.content.browser.ContentViewCore; |
import org.chromium.content.browser.ContentViewRenderView; |
-import org.chromium.content.common.ContentSwitches; |
import org.chromium.ui.base.WindowAndroid; |
/** |
@@ -53,20 +51,14 @@ public class ShellManager extends FrameLayout { |
@Override |
public boolean onShowCustomView(View view) { |
boolean success = super.onShowCustomView(view); |
- if (!CommandLine.getInstance().hasSwitch( |
- ContentSwitches.DISABLE_OVERLAY_FULLSCREEN_VIDEO_SUBTITLE)) { |
- setOverlayVideoMode(true); |
- } |
+ setOverlayVideoMode(true); |
return success; |
} |
@Override |
public void onDestroyContentVideoView() { |
super.onDestroyContentVideoView(); |
- if (!CommandLine.getInstance().hasSwitch( |
- ContentSwitches.DISABLE_OVERLAY_FULLSCREEN_VIDEO_SUBTITLE)) { |
- setOverlayVideoMode(false); |
- } |
+ setOverlayVideoMode(false); |
} |
}; |
} |