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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 845193005: Tear down ContentVideoView from content-layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only include content_video_view.h on Android Created 5 years, 11 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/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 0ad2f31f8e4f6b1c62b1e36de628d9e975280057..9d11bbb5a15cd1fb22a08427a2e6b3bff76b0a9e 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -108,6 +108,7 @@
#endif
#if defined(OS_ANDROID)
+#include "content/browser/android/content_video_view.h"
#include "content/browser/android/date_time_chooser_android.h"
#include "content/browser/media/android/browser_media_player_manager.h"
#include "content/browser/web_contents/web_contents_android.h"
@@ -1485,6 +1486,12 @@ void WebContentsImpl::ExitFullscreenMode() {
if (widget_view)
RenderWidgetHostImpl::From(widget_view->GetRenderWidgetHost())->Shutdown();
+#if defined(OS_ANDROID)
+ ContentVideoView* video_view = ContentVideoView::GetInstance();
+ if (video_view != NULL)
+ video_view->OnExitFullscreen();
+#endif
+
if (delegate_)
delegate_->ExitFullscreenModeForTab(this);

Powered by Google App Engine
This is Rietveld 408576698