
This implements 2 handlers for pin-related functions. - OnPinRequest: this is called when Floss daemon requires the user to enter a PIN code. - OnPinDisplay: this is called when Floss daemon asks chrome to display the PIN code generated by Floss. Bug: crbug:277980471 Test: run GAP/SEC/SEM/BI-05-C to simulate legacy pairing and manually altering daemon to invoke |OnPinRequest| or |OnPinDisplay| Change-Id: I21214ef457c553819230035bdb3a21469c06be5f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4505402 Reviewed-by: Katherine Lai <laikatherine@chromium.org> Commit-Queue: Yun-Hao Chung <howardchung@chromium.org> Cr-Commit-Position: refs/heads/main@{#1144533}