[Reboot] Modify the AdminSyncPtr to AdminPtr
Using SyncPtr causes a deadlock since the caller is waiting for the call to return, while the reboot component may not return right away, so caller is blocked and cannot process any notification during the time. Changed to AdminPtr to make caller still active during reboot. Bug: b/163045578 Test: local test and updated unit test Change-Id: Icf2644191ef5113b8ff9f7de73feb0765b4ea2e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2350741 Auto-Submit: Hai Bi <bihai@google.com> Commit-Queue: Hai Bi <bihai@google.com> Reviewed-by:Michael Spang <spang@chromium.org> Cr-Commit-Position: refs/heads/master@{#797852}
Showing
Please register or sign in to comment