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 ff003ddb3c808f2ecd7ce45abb86207620d9d2bd..ab8cb8fbb835967f2a9ef57e6ed49c73443f94c3 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -20,6 +20,7 @@ |
#include "base/time/time.h" |
#include "content/browser/accessibility/accessibility_mode_helper.h" |
#include "content/browser/accessibility/browser_accessibility_state_impl.h" |
+#include "content/browser/android/content_video_view.h" |
#include "content/browser/browser_plugin/browser_plugin_embedder.h" |
#include "content/browser/browser_plugin/browser_plugin_guest.h" |
#include "content/browser/child_process_security_policy_impl.h" |
@@ -1473,6 +1474,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); |