DescriptionFix a bug that would cause the plugin_loader to stall.
If there's an error launching the plugin_loader's process_host, then the
plugin_loader will stall forever. This happened because the return value of
process_host_->Send() was being ignored, and because PluginLoaderPosix was not
overriding OnProcessLaunchFailed().
This CL also includes a minor refactor:
- Removed the LOCAL_HISTOGRAM_TIMES "PluginLoaderPosix.LoadDone", because it
was measuring the time between MaybeRunPendingCallbacks(), rather than the
amount of time it takes to load the plugins. I'm guessing that this metric is
out of date, and was never removed.
- Separated MaybeRunPendingCallbacks() into two methods,
IsFinishedLoadingPlugins() and FinishedLoadingPlugins().
- Removed the method MaybeAddInternalPlugin(), as its name was confusing, and
added FindInternalPlugin() in its place. This also simplified the logic
slightly.
BUG=429388
Committed: https://crrev.com/f610f1386915840bee7de38377b5e5b80f6f076e
Cr-Commit-Position: refs/heads/master@{#303581}
Patch Set 1 : #Patch Set 2 : Lambda capture variable should be passed by reference. #Patch Set 3 : Fix a bug where internal plugins were not correctly being loaded. #
Total comments: 8
Patch Set 4 : Comments from avi. #
Messages
Total messages: 10 (4 generated)
|