Commit 468c4d1b authored by Michael Hansen's avatar Michael Hansen Committed by Commit Bot

OOBE: Fix discovery session logic on HIDDetectionScreen.

This fixes an issue where a discovery session is never started on the
HIDDetectionScreen, leaving the user unable to pair a Bluetooth input
device through the automatic connection flow.

Bug: b:168247012
Change-Id: I30f09ff661081afe0f71d8624d61cec10dc31093
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495832Reviewed-by: default avatarRyan Hansberry <hansberry@chromium.org>
Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Michael Hansen <hansenmichael@google.com>
Cr-Commit-Position: refs/heads/master@{#821468}
parent 8ba5b0c4
......@@ -532,6 +532,8 @@ void HIDDetectionScreen::TryInitiateBTDevicesUpdate() {
weak_ptr_factory_.GetWeakPtr()),
base::Bind(&HIDDetectionScreen::SetPoweredError,
weak_ptr_factory_.GetWeakPtr()));
} else if (!discovery_session_ || !discovery_session_->IsActive()) {
StartBTDiscoverySession();
} else {
UpdateBTDevices();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment