
If object manager is not supported when switching adapters, don't run client ready callback since clients aren't actually initialized. Also refactor adapter disabled calls since we can still clean up adapter state if there is no object manager. BUG=b:352797145 TEST=device_unittests Change-Id: I97a604faae815ff5c3a4c92a942796fd52347522 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6139209 Reviewed-by: Hsin-chen Chuang <chharry@google.com> Commit-Queue: Katherine Lai <laikatherine@chromium.org> Cr-Commit-Position: refs/heads/main@{#1401828}