Convert chrome/browser/*process_singleton* Callbacks/Binds
Converts Callbacks used by the *process_singleton* classes to Repeating Callbacks. Most callbacks are obviously (at least potentially) called multiple times; however, the ShouldKillRemoteProcessCallback appears to only be called once, as a result of PreMainMessageLoopRun. Despite this, this change opts to make it a RepeatingCallback as nothing in its usage would prevent it from being called multiple times and it appears to only be a callback (instead of a direct method call), so that the behavior can be overridden by tests. Additionally, converts base::Binds used by the *process_singleton* classes where the consuming API has been updated to take a particular type. After this change the *process_singleton* files should be clean of any base::Bind(, base::Callback<, and base::Closure calls. Bug: 1007635 Change-Id: Ifbf9fc165e063440f4f6ac3212f0cd403f70dfa3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2296637Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Greg Thompson <grt@chromium.org> Commit-Queue: Alexander Cooper <alcooper@chromium.org> Auto-Submit: Alexander Cooper <alcooper@chromium.org> Cr-Commit-Position: refs/heads/master@{#789258}
Showing
Please register or sign in to comment