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

Unified Diff: content/renderer/render_view_impl.cc

Issue 11418120: Release video resources when switching tabs or leave clank (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « no previous file | webkit/media/android/webmediaplayer_manager_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 1fd96d45e429c87a9f05899a621aa9a250519122..7c9a21bd964b126c6a71bfcc7c94ba5c752538d1 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -5725,11 +5725,11 @@ void RenderViewImpl::OnWasHidden() {
#if defined(OS_ANDROID)
// Inform WebMediaPlayerManagerAndroid to release all media player resources.
- // unless some media is playing.
+ // unless some audio is playing.
// If something is in progress the resource will not be freed, it will
// only be freed once the tab is destroyed or if the user navigates away
// via WebMediaPlayerAndroid::Destroy
- media_player_manager_->ReleaseMediaResourcesIfNotPlaying();
+ media_player_manager_->ReleaseMediaResources();
scherkus (not reviewing) 2012/11/21 21:44:30 would it be more accurate to call this "ReleaseVid
qinmin 2012/11/21 21:53:54 I think video is not correct, as it also released
#endif
if (webview()) {
« no previous file with comments | « no previous file | webkit/media/android/webmediaplayer_manager_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698