Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RenderProcessHostObserver::InProcessRendererExiting #4896

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

borongc
Copy link
Contributor

@borongc borongc commented Feb 12, 2025

This new notification is useful for worker code that needs to observe the render process exiting, which doesn't work in --single-process mode.

Used in this CL to fix an issue where 2 RenderProcessHostObservers were watching for the RenderProcessHostDestroyed() notification to clean up nodes on the performance manager graph, but one of the observer needed to be notified first, which depended on the somewhat random order of the observers in the observer list.

This change is backported from m118+.

(cherry picked from commit 3426bf6e8f2eb618d09608b4379ee73f2c4c31a9)

b/391938746

Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4780551

@borongc borongc requested a review from a team as a code owner February 12, 2025 19:26
@borongc borongc requested a review from yell0wd0g February 12, 2025 19:26
@borongc borongc enabled auto-merge February 12, 2025 19:28
@borongc borongc disabled auto-merge February 12, 2025 19:48
This new notification is useful for worker code that needs to observe
the render process exiting, which doesn't work in --single-process
mode.

Used in this CL to fix an issue where 2 RenderProcessHostObservers
were watching for the RenderProcessHostDestroyed() notification to
clean up nodes on the performance manager graph, but one of the
observer needed to be notified first, which depended on the somewhat
random order of the observers in the observer list.

This change is backported from m118+.

(cherry picked from commit 3426bf6e8f2eb618d09608b4379ee73f2c4c31a9)

Bug: 391938746
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4780551
@borongc borongc force-pushed the render_processor_host branch from 206cebc to 3e75d23 Compare February 12, 2025 19:48
@borongc borongc enabled auto-merge February 12, 2025 19:59
@borongc borongc merged commit bbcbd36 into youtube:main Feb 12, 2025
136 of 137 checks passed
@borongc borongc deleted the render_processor_host branch February 12, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants