commit | 09785ba43c55803d3efc630f9aec48b41c886262 | [log] [tgz] |
---|---|---|
author | Will Harris <wfh@chromium.org> | Thu Apr 14 00:07:37 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Apr 14 00:07:37 2022 |
tree | 0b493784e9c10ba5ca51a59ccbd7bf792cefb568 | |
parent | e5ad3451c17b21341b0b9019b074801c44c92c9f [diff] |
Change crash_reporter:ChildExitObserver back to non-singleton. In the distant past, ChildExitObserver had to be singleton as it was managed by breakpad and accessed from various locations across the code, so a singleton made sense. Now, it's only accessed from one place in browser_main_parts so can be converted back to a unique_ptr whose lifetime can be managed more tightly. This change allows a DCHECK to finally be restored in BrowserChildProcessHostImpl::RemoveObserver as the entire lifetime of this object is now within the lifetime of the task environment of RenderViewHostTestHarness meaning OutOfMemoryReporterTest passes. BUG=167126,1315700 Change-Id: Ied071d64e482411d38b9abfbd677165823af6855 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3349784 Reviewed-by: Lei Zhang <thestig@chromium.org> Reviewed-by: Junbo Ke <juke@chromium.org> Reviewed-by: Richard Coles <torne@chromium.org> Reviewed-by: John Abd-El-Malek <jam@chromium.org> Commit-Queue: Will Harris <wfh@chromium.org> Cr-Commit-Position: refs/heads/main@{#992319}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.