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

Unified Diff: content/browser/android/content_video_view.cc

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/browser/android/content_video_view.cc
diff --git a/content/browser/android/content_video_view.cc b/content/browser/android/content_video_view.cc
index 342a140e3ce3f0e0647676df2fb12a438ed3878b..901afd4e1f8a6a6ac6d2e703c935a335900456b1 100644
--- a/content/browser/android/content_video_view.cc
+++ b/content/browser/android/content_video_view.cc
@@ -249,16 +249,13 @@ gfx::NativeView ContentVideoView::GetNativeView() {
JavaObjectWeakGlobalRef ContentVideoView::CreateJavaObject() {
ContentViewCoreImpl* content_view_core = manager_->GetContentViewCore();
JNIEnv* env = AttachCurrentThread();
- bool legacyMode = base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableOverlayFullscreenVideoSubtitle);
return JavaObjectWeakGlobalRef(
env,
Java_ContentVideoView_createContentVideoView(
env,
content_view_core->GetContext().obj(),
reinterpret_cast<intptr_t>(this),
- content_view_core->GetContentVideoViewClient().obj(),
- legacyMode).obj());
+ content_view_core->GetContentVideoViewClient().obj()).obj());
}
void ContentVideoView::CreatePowerSaveBlocker() {
@@ -268,7 +265,6 @@ void ContentVideoView::CreatePowerSaveBlocker() {
// container view that was created for embedded video. The WebView cannot
// reuse that so we create a new blocker instead.
if (power_save_blocker_) return;
-
power_save_blocker_ = PowerSaveBlocker::Create(
PowerSaveBlocker::kPowerSaveBlockPreventDisplaySleep,
"Playing video").Pass();

Powered by Google App Engine
This is Rietveld 408576698