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

Issue 8591024: Correct the order of destruction of ProfileImplIOData and ExtensionProcessManager. This was causi... (Closed)

Created:
9 years, 1 month ago by robertshield
Modified:
9 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, dpranke-watch+content_chromium.org, grt (UTC plus 2), erikwright (departed), Matt Perry
Visibility:
Public.

Description

Correct the order of destruction of ProfileImplIOData and ExtensionProcessManager. This was causing obscure shutdown crashes. See bug for description of crashes. Also add a DCHECK to help enforce that all RenderProcessHost instances must have been shutdown before ProfileImplIOData->ShutdownOnUIThread() is called. BUG=91398 TEST=Chrome does not crash when extensions with background pages make resource requests during shutdown. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111762

Patch Set 1 : '' #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : Remove the DCHECK() on RPH counts, it is not compatible with multiple profiles. #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -10 lines) Patch
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 3 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_close_browsertest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
robertshield
9 years, 1 month ago (2011-11-17 19:51:18 UTC) #1
willchan no longer on Chromium
LGTM http://codereview.chromium.org/8591024/diff/6/chrome/browser/profiles/profile_impl.h File chrome/browser/profiles/profile_impl.h (right): http://codereview.chromium.org/8591024/diff/6/chrome/browser/profiles/profile_impl.h#newcode213 chrome/browser/profiles/profile_impl.h:213: // io_data_ needs to outlive extension_process_manager_. |io_data_| needs ...
9 years, 1 month ago (2011-11-17 20:11:32 UTC) #2
willchan no longer on Chromium
+mpcomplete since he's the most likely to shuffle around any extension stuff in ProfileImpl.
9 years, 1 month ago (2011-11-17 20:12:00 UTC) #3
robertshield
http://codereview.chromium.org/8591024/diff/6/chrome/browser/profiles/profile_impl.h File chrome/browser/profiles/profile_impl.h (right): http://codereview.chromium.org/8591024/diff/6/chrome/browser/profiles/profile_impl.h#newcode213 chrome/browser/profiles/profile_impl.h:213: // io_data_ needs to outlive extension_process_manager_. On 2011/11/17 20:11:32, ...
9 years, 1 month ago (2011-11-17 21:00:42 UTC) #4
willchan no longer on Chromium
Looks like this is breaking downloads. There's probably some dependency ordering there. The ordering in ...
9 years, 1 month ago (2011-11-18 16:52:58 UTC) #5
robertshield
The download breakage was due to me not having made the corresponding change to OffTheRecordProfile. ...
9 years ago (2011-11-25 15:04:43 UTC) #6
willchan no longer on Chromium
9 years ago (2011-11-28 18:52:07 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698