[service-manager] Simplify connection logic
This reduces the complexity of Service Manager's logic for handling interconnection between service instances. Much of the complexity was due to connection operations once upon a time being highly asynchronous within SM, but that hasn't been the case for a while. Rather than having ServiceManager::Connect do way too much stuff, it's replaced with a simpler and more straightforward FindOrCreateMatchingTargetInstance, which does only what the name says. Previous work done by Connect() in various edge cases has been moved out to its prior call sites, now replaced with calls to FOCMTI. Bug: 904240 Change-Id: Ia276f6fa61477ddc141724d30484237498eef070 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1593722Reviewed-by:Oksana Zhuravlova <oksamyt@chromium.org> Commit-Queue: Ken Rockot <rockot@google.com> Cr-Commit-Position: refs/heads/master@{#657401}
Showing
This diff is collapsed.
Please register or sign in to comment