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

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

Issue 7550031: Fix cancelling prerenders not being returned by GetAsValue() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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_manager.cc
===================================================================
--- chrome/browser/prerender/prerender_manager.cc (revision 95431)
+++ chrome/browser/prerender/prerender_manager.cc (working copy)
@@ -603,6 +603,7 @@
break;
}
}
+ AddToHistory(entry);
pending_delete_list_.push_back(entry);
// Destroy the old TabContents relatively promptly to reduce resource usage,
@@ -651,7 +652,6 @@
while (!pending_delete_list_.empty()) {
PrerenderContents* contents = pending_delete_list_.front();
pending_delete_list_.pop_front();
- AddToHistory(contents);
delete contents;
}
}
« 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