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 d2c3dd3c3738c631953c950f49b9a625f2214920..1f51615065645b7db2174164a1adaf5daa9cf4d6 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -342,6 +342,13 @@ void ContentViewCoreImpl::Show() { |
void ContentViewCoreImpl::Hide() { |
GetWebContents()->WasHidden(); |
+ PauseVideo(); |
+} |
+ |
+void ContentViewCoreImpl::PauseVideo() { |
+ RenderViewHost* host = web_contents_->GetRenderViewHost(); |
+ if (host) |
+ host->Send(new ViewMsg_PauseVideo(host->GetRoutingID())); |
} |
void ContentViewCoreImpl::OnTabCrashed() { |