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

Issue 7017014: Fix issues when PrerenderContents::Destroy() is called during TabContents destruction. (Closed)

Created:
9 years, 7 months ago by mmenke
Modified:
9 years, 7 months ago
CC:
chromium-reviews, tburkard+watch_chromium.org, cbentzel+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Prevent DCHECK (And later double deletion) when PrerenderContents::Destroy() is called in response to TabContents destruction. Re-enables PrerenderBrowserTest.PrerenderHttpAuthentication, which ran into the issue on ChromeOS. BUG=82835, 82913 TEST=PrerenderBrowserTest.PrerenderHttpAuthentication on ChromeOS Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86339

Patch Set 1 : '' #

Patch Set 2 : Fix random typo #

Patch Set 3 : Fix calling Destroy() in Init #

Patch Set 4 : Remove unnecessary function call #

Total comments: 2

Patch Set 5 : Response to Shishir's comment, sync #

Patch Set 6 : Fix unit test #

Patch Set 7 : Sync #

Patch Set 8 : Linux fix #

Patch Set 9 : Fix merging mistake #

Patch Set 10 : Sync #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -7 lines) Patch
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -3 lines 2 comments Download
M chrome/browser/prerender/prerender_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
mmenke
9 years, 7 months ago (2011-05-17 15:44:18 UTC) #1
mmenke
[+dominich]
9 years, 7 months ago (2011-05-18 13:49:26 UTC) #2
dominich
LGTM I've added shishir to CC as he originally made the change to delete PrerenderContents ...
9 years, 7 months ago (2011-05-18 14:18:59 UTC) #3
mmenke
Thanks. I've been having trouble keeping track of who did which change. On 2011/05/18 14:18:59, ...
9 years, 7 months ago (2011-05-18 14:20:36 UTC) #4
Shishir
http://codereview.chromium.org/7017014/diff/2012/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): http://codereview.chromium.org/7017014/diff/2012/chrome/browser/prerender/prerender_manager.cc#newcode589 chrome/browser/prerender/prerender_manager.cc:589: pending_delete_list_.push_back(entry); I had initially pushed this outside the loop ...
9 years, 7 months ago (2011-05-18 18:34:32 UTC) #5
mmenke
http://codereview.chromium.org/7017014/diff/2012/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): http://codereview.chromium.org/7017014/diff/2012/chrome/browser/prerender/prerender_manager.cc#newcode589 chrome/browser/prerender/prerender_manager.cc:589: pending_delete_list_.push_back(entry); On 2011/05/18 18:34:32, Shishir wrote: > I had ...
9 years, 7 months ago (2011-05-18 18:50:37 UTC) #6
mmenke
Shishir: What do you think of this? While I could just set prerendering_has_been_cancelled_ to true ...
9 years, 7 months ago (2011-05-18 21:02:27 UTC) #7
mmenke
Shishir: Ping?
9 years, 7 months ago (2011-05-23 15:03:33 UTC) #8
mmenke
[+cbentzel]
9 years, 7 months ago (2011-05-23 15:21:48 UTC) #9
Shishir
LGTM
9 years, 7 months ago (2011-05-23 18:00:14 UTC) #10
cbentzel
LGTM http://codereview.chromium.org/7017014/diff/22005/chrome/browser/prerender/prerender_contents.cc File chrome/browser/prerender/prerender_contents.cc (right): http://codereview.chromium.org/7017014/diff/22005/chrome/browser/prerender/prerender_contents.cc#newcode721 chrome/browser/prerender/prerender_contents.cc:721: prerender_manager_->MoveEntryToPendingDelete(this); Is there a reason MoveEntryToPendingDelete moved up ...
9 years, 7 months ago (2011-05-23 18:51:28 UTC) #11
mmenke
http://codereview.chromium.org/7017014/diff/22005/chrome/browser/prerender/prerender_contents.cc File chrome/browser/prerender/prerender_contents.cc (right): http://codereview.chromium.org/7017014/diff/22005/chrome/browser/prerender/prerender_contents.cc#newcode721 chrome/browser/prerender/prerender_contents.cc:721: prerender_manager_->MoveEntryToPendingDelete(this); On 2011/05/23 18:51:28, cbentzel wrote: > Is there ...
9 years, 7 months ago (2011-05-23 18:55:35 UTC) #12
commit-bot: I haz the power
Try job failure for 7017014-22005 on linux: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux&number=28039
9 years, 7 months ago (2011-05-23 19:19:39 UTC) #13
commit-bot: I haz the power
9 years, 7 months ago (2011-05-23 21:02:52 UTC) #14
Change committed as 86339

Powered by Google App Engine
This is Rietveld 408576698