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

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

Issue 109983006: Remove calls of PrerenderTracker::TryCancel on UI thread and instead have them call PrerenderConten… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 6 years, 11 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 | « chrome/browser/chrome_content_browser_client.cc ('k') | 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 243063)
+++ chrome/browser/prerender/prerender_manager.cc (working copy)
@@ -1754,12 +1754,11 @@
if (!tab)
return;
- if (!IsWebContentsPrerendering(tab, NULL))
+ PrerenderContents* prerender_contents = GetPrerenderContents(tab);
+ if (!prerender_contents)
return;
- prerender_tracker()->TryCancel(
- render_process_id, render_view_id,
- prerender::FINAL_STATUS_CREATING_AUDIO_STREAM);
+ prerender_contents->Destroy(prerender::FINAL_STATUS_CREATING_AUDIO_STREAM);
}
void PrerenderManager::RecordLikelyLoginOnURL(const GURL& url) {
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698