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

Issue 1798001: Make sure the "cancel leaked host resolver requests shutdown hack" gets run b... (Closed)

Created:
10 years, 8 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Make sure the "cancel leaked host resolver requests shutdown hack" gets run before the message loop is destroyed. BUG=41966 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=45644

Patch Set 1 #

Total comments: 1

Patch Set 2 : add comments #

Patch Set 3 : make it hackier, but less dangerous #

Patch Set 4 : rework comment #

Patch Set 5 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -5 lines) Patch
M chrome/browser/io_thread.h View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 3 chunks +14 lines, -1 line 0 comments Download
M chrome/test/data/reliability/known_crashes.txt View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
eroman
10 years, 8 months ago (2010-04-26 21:04:16 UTC) #1
willchan no longer on Chromium
http://codereview.chromium.org/1798001/diff/1/3 File chrome/browser/io_thread.cc (right): http://codereview.chromium.org/1798001/diff/1/3#newcode174 chrome/browser/io_thread.cc:174: void IOThread::CleanUpAfterMessageLoopDestruction() { You need to document why we ...
10 years, 8 months ago (2010-04-26 21:17:00 UTC) #2
willchan no longer on Chromium
LGTM On 2010/04/26 21:17:00, willchan wrote: > http://codereview.chromium.org/1798001/diff/1/3 > File chrome/browser/io_thread.cc (right): > > http://codereview.chromium.org/1798001/diff/1/3#newcode174 ...
10 years, 8 months ago (2010-04-26 21:17:09 UTC) #3
eroman
Done, I added a comment. Regarding a test: I don't have a great solution, shutdown ...
10 years, 8 months ago (2010-04-26 21:54:46 UTC) #4
eroman
OK, I have re-worked this change. Basically I restored it even closer to the original ...
10 years, 8 months ago (2010-04-26 22:37:57 UTC) #5
willchan no longer on Chromium
I have to say that this looks much hackier. So you're trying to defend against ...
10 years, 8 months ago (2010-04-26 23:29:12 UTC) #6
eroman
10 years, 8 months ago (2010-04-26 23:53:08 UTC) #7
> I have to say that this looks much hackier.  So you're trying to defend
against
>further use of the ChromeNetLog in a destruction observer?

Correct.

> Do you know if this happens? 

Yes it happens  (see bug 39723).

> I guess I'm fine with this as a one-off for the 375 branch, but
> wouldn't want this type of solution to stick around for long.

I am unhappy with this solution as well. Plan to do the long-term fix described
in the TODO.

Powered by Google App Engine
This is Rietveld 408576698