Will add a test too, just a heads up since they marked this p0
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
tracing: Fix browser shutdown crash in BackgroundTracingManagerImpl
Call DisableScenarios() in BackgroundTracingManagerImpl destructor
before setting TracingAgentObserverManager to nullptr.
BackgroundTracingManagerImpl inherits from BackgroundTracingManager and
implements TracingAgentObserverManager. During shutdown, the derived
class destructor unregisters the observer manager instance, but the
base class destructor is the one that calls DisableScenarios() to
abort and uninstall trigger rules (such as HistogramRule). This
triggers a CHECK failure when HistogramRule's uninstallation logic
attempts to access the now-null TracingAgentObserverManager instance.
Explicitly calling DisableScenarios() in the derived class destructor
ensures that scenarios and rules are uninstalled while the observer
manager instance is still valid.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |