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

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

Issue 886603009: Cleanup power save blockers after a RenderView crashes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test. Created 5 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/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 f4837942137d3f8fee9676a5a70e8b8a03695c87..c6672bc381c392389bce4924363453905abf19a9 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -3702,6 +3702,10 @@ void WebContentsImpl::RenderViewReady(RenderViewHost* rvh) {
void WebContentsImpl::RenderViewTerminated(RenderViewHost* rvh,
base::TerminationStatus status,
int error_code) {
+ // TODO(nasko): This isn't ideal; the termination process should be handled by
+ // RenderFrameDeleted(). See http://crbug.com/455943
Charlie Reis 2015/02/06 00:08:21 nit: End with period. (Code search gets the link
DaleCurtis 2015/02/06 00:10:31 Done.
+ ClearPowerSaveBlockers(rvh->GetMainFrame());
+
if (rvh != GetRenderViewHost()) {
// The pending page's RenderViewHost is gone.
return;

Powered by Google App Engine
This is Rietveld 408576698