| Index: components/proximity_auth/unlock_manager_impl.cc
|
| diff --git a/components/proximity_auth/unlock_manager_impl.cc b/components/proximity_auth/unlock_manager_impl.cc
|
| index 2d8b30b75636e43d131448796ea9b84f48f8ac8e..7316c179c9d08f498fdd756ce2ede7ef61963080 100644
|
| --- a/components/proximity_auth/unlock_manager_impl.cc
|
| +++ b/components/proximity_auth/unlock_manager_impl.cc
|
| @@ -352,6 +352,9 @@ ScreenlockState UnlockManagerImpl::GetScreenlockState() {
|
| life_cycle_->GetState() == RemoteDeviceLifeCycle::State::STOPPED)
|
| return ScreenlockState::INACTIVE;
|
|
|
| + if (!bluetooth_adapter_ || !bluetooth_adapter_->IsPowered())
|
| + return ScreenlockState::NO_BLUETOOTH;
|
| +
|
| if (IsUnlockAllowed())
|
| return ScreenlockState::AUTHENTICATED;
|
|
|
| @@ -365,9 +368,6 @@ ScreenlockState UnlockManagerImpl::GetScreenlockState() {
|
| RemoteDeviceLifeCycle::State::FINDING_CONNECTION)
|
| return ScreenlockState::BLUETOOTH_CONNECTING;
|
|
|
| - if (!bluetooth_adapter_ || !bluetooth_adapter_->IsPowered())
|
| - return ScreenlockState::NO_BLUETOOTH;
|
| -
|
| Messenger* messenger = GetMessenger();
|
| if (screenlock_type_ == ProximityAuthSystem::SIGN_IN && messenger &&
|
| !messenger->SupportsSignIn())
|
|
|