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

Unified Diff: chrome/browser/prerender/prerender_contents.cc

Issue 7057031: Fix flakiness resulting from deleting TabContents before the registrar (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_contents.cc
===================================================================
--- chrome/browser/prerender/prerender_contents.cc (revision 86172)
+++ chrome/browser/prerender/prerender_contents.cc (working copy)
@@ -794,6 +794,7 @@
TabContentsWrapper* PrerenderContents::ReleasePrerenderContents() {
render_view_host_observer_.reset();
prerender_contents_->download_tab_helper()->set_delegate(NULL);
+ tab_contents_observer_registrar_.Observe(NULL);
dominich 2011/05/23 16:40:31 Why are you only calling this in the case that we
mmenke 2011/05/23 16:45:36 When we don't have a prerender_contents_, we aren'
return prerender_contents_.release();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698