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

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

Issue 157783004: Partial revert of "Restart fullscreen video playback when switching back from background" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 10 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_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index e98186525cd370eef411ebd0fbfb367776d8e26e..6adf942d39338978741caba93010bde7380ea45e 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -16,7 +16,6 @@
#include "base/values.h"
#include "cc/layers/layer.h"
#include "cc/output/begin_frame_args.h"
-#include "content/browser/android/content_video_view.h"
#include "content/browser/android/gesture_event_type.h"
#include "content/browser/android/interstitial_page_delegate_android.h"
#include "content/browser/android/load_url_params.h"
@@ -416,7 +415,6 @@ void ContentViewCoreImpl::OnShow(JNIEnv* env, jobject obj) {
void ContentViewCoreImpl::Show() {
GetWebContents()->WasShown();
- ResumeVideo();
}
void ContentViewCoreImpl::Hide() {
@@ -428,13 +426,6 @@ void ContentViewCoreImpl::PauseVideo() {
RenderViewHost* host = web_contents_->GetRenderViewHost();
if (host)
host->Send(new ViewMsg_PauseVideo(host->GetRoutingID()));
- if (ContentVideoView::GetInstance())
- ContentVideoView::GetInstance()->SuspendFullscreen();
-}
-
-void ContentViewCoreImpl::ResumeVideo() {
- if (ContentVideoView::GetInstance())
- ContentVideoView::GetInstance()->ResumeFullscreenIfSuspended();
}
void ContentViewCoreImpl::PauseOrResumeGeolocation(bool should_pause) {
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/media/android/browser_media_player_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698