Instrument and simplify DestroyProfileWhenAppropriate().
Reorganizes the logic to make clearer when the Profile will be deleted immediately, and when deletion can be deferred. Preconditions are separated into separate DCHECKs to make the failing conditions more visible, and basic information (e.g. RenderProcessHost counts) are copied to the stack and base::Alias()ed, to appear in crash dumps. Bug: 720078 Change-Id: I2138b14d27a157883bc62aab3cccf6920891aa9f Reviewed-on: https://chromium-review.googlesource.com/989120 Commit-Queue: Wez <wez@chromium.org> Reviewed-by:Bernhard Bauer <bauerb@chromium.org> Reviewed-by:
Bruce Dawson <brucedawson@chromium.org> Cr-Commit-Position: refs/heads/master@{#547789}
Showing
Please register or sign in to comment