| Commit-Queue | +1 |
Hey Alex, would you mind giving this a gander? I think the global Service Process Host Observer pattern is a little not performant and it would be better to register an observer for the process when you launch. I have follow-ups to fix up the users of the global observer.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgtm w/nit
Options& WithObserver(base::WeakPtr<Observer> observer);do we need to stop multiple observers being added (e.g. CHECK if there already is one?) - people might think the builder can build a bunch of them.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hey Avi, would you mind taking a look at this?
do we need to stop multiple observers being added (e.g. CHECK if there already is one?) - people might think the builder can build a bunch of them.
| 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. |
| Auto-Submit | +1 |
@AlexGough Could you do one last sign off? I added an ObserverHub so that multiple things could subscribe to a registered observer because as I was migrating over the apps I discovered a need for that.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
Just adding another test to validate restarting hooks up the ObserverHub properly.
| 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. |
@alex please restamp
| Code-Review | +1 |
| 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. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
9 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
Migrate ServiceProcessHost::Observer to per-instance callbacks
The global ServiceProcessHost::Observer broadcasts every service process
event to every observer. Each observer must filter by service type, and
this will cause duplicate notifications when process pooling shares a
process across multiple services.
This change adds a WithObserver Option to ServiceProcessHost::Options so
there is no need to register for global updates and then filter on a
particular service name.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |