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

Issue 8539027: Add SwappedOut to TabContentsDelegate to allow us to correctly delete TabContents. (Closed)

Created:
9 years, 1 month ago by dominich
Modified:
9 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, creis+watch_chromium.org, tburkard+watch_chromium.org, ajwong+watch_chromium.org, jam, Avi (use Gerrit), dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, dominich+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, supersat
Visibility:
Public.

Description

Add SwappedOut to TabContentsDelegate to allow us to correctly delete TabContents. When a page has an unload handler and we swap it out to make way for a Prerendered tab, we expect a call to the TabContentsDelegate when it closes. For cross-site navigations, we don't get that message as the RenderViewHost is swapped instead of closing. BUG=103966 TEST=Enable prerender from omnibox (and ensure it's not disabled by field trial) and repeatedly navigate between cnn.com and telegraph.co.uk in the Omnibox. Note in the TaskManager that you do not see zombie Tab processes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110145

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix linux compile #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -3 lines) Patch
M chrome/browser/prerender/prerender_manager.cc View 1 3 chunks +24 lines, -3 lines 3 comments Download
M content/browser/renderer_host/render_view_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents_delegate.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents_delegate.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
dominich
I'm open to alternative solutions to this problem. I admit I'm not completely sure why ...
9 years, 1 month ago (2011-11-11 22:15:08 UTC) #1
Charlie Reis
Drive-by comments. (I'm concerned about the swap out logic independently of the zombie process you're ...
9 years, 1 month ago (2011-11-11 22:23:51 UTC) #2
dominich
On 2011/11/11 22:23:51, creis wrote: > Drive-by comments. (I'm concerned about the swap out logic ...
9 years, 1 month ago (2011-11-11 23:09:53 UTC) #3
Charlie Reis
On 2011/11/11 23:09:53, dominich wrote: > > You're seeing the current RenderViewHost send a swapped ...
9 years, 1 month ago (2011-11-11 23:45:41 UTC) #4
dominich
On 2011/11/11 23:45:41, creis wrote: > On 2011/11/11 23:09:53, dominich wrote: > > > You're ...
9 years, 1 month ago (2011-11-11 23:48:55 UTC) #5
Charlie Reis
On 2011/11/11 23:48:55, dominich wrote: > Yes, there are many other parts of the code ...
9 years, 1 month ago (2011-11-11 23:54:19 UTC) #6
dominich
On 2011/11/11 23:54:19, creis wrote: > On 2011/11/11 23:48:55, dominich wrote: > > Yes, there ...
9 years, 1 month ago (2011-11-11 23:57:48 UTC) #7
jam
lgtm
9 years, 1 month ago (2011-11-14 19:29:55 UTC) #8
cbentzel
Thanks for tracking this down. http://codereview.chromium.org/8539027/diff/4001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): http://codereview.chromium.org/8539027/diff/4001/chrome/browser/prerender/prerender_manager.cc#newcode94 chrome/browser/prerender/prerender_manager.cc:94: MessageLoop::current()->PostDelayedTask(FROM_HERE, Why is this ...
9 years, 1 month ago (2011-11-15 12:20:34 UTC) #9
dominich
http://codereview.chromium.org/8539027/diff/4001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): http://codereview.chromium.org/8539027/diff/4001/chrome/browser/prerender/prerender_manager.cc#newcode95 chrome/browser/prerender/prerender_manager.cc:95: base::Bind(&OnCloseTabContentsDeleter::ScheduleTabContentsForDeletion, On 2011/11/15 12:20:34, cbentzel wrote: > There's already ...
9 years, 1 month ago (2011-11-15 15:33:28 UTC) #10
cbentzel
LGTM On Tue, Nov 15, 2011 at 10:33 AM, <dominich@chromium.org> wrote: > > http://codereview.chromium.**org/8539027/diff/4001/chrome/** > ...
9 years, 1 month ago (2011-11-15 15:50:53 UTC) #11
mmenke
LGTM. Sorry for the delayed response, hadn't realized I was a reviewer on this.
9 years, 1 month ago (2011-11-15 17:26:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominich@chromium.org/8539027/4001
9 years, 1 month ago (2011-11-15 17:32:34 UTC) #13
commit-bot: I haz the power
9 years, 1 month ago (2011-11-15 19:23:00 UTC) #14
Change committed as 110145

Powered by Google App Engine
This is Rietveld 408576698