| 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();
|
|
|