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

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

Issue 7017014: Fix issues when PrerenderContents::Destroy() is called during TabContents destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Sync 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
Index: chrome/browser/prerender/prerender_contents.h
===================================================================
--- chrome/browser/prerender/prerender_contents.h (revision 86287)
+++ chrome/browser/prerender/prerender_contents.h (working copy)
@@ -337,6 +337,10 @@
bool prerendering_has_started_;
+ // Tracks whether or not prerendering has been cancelled by calling Destroy.
+ // Used solely to prevent double deletion.
+ bool prerendering_has_been_cancelled_;
+
// Time at which we started to load the URL. This is used to compute
// the time elapsed from initiating a prerender until the time the
// (potentially only partially) prerendered page is shown to the user.

Powered by Google App Engine
This is Rietveld 408576698