| Index: chrome/browser/signin/easy_unlock_auth_attempt.cc
|
| diff --git a/chrome/browser/signin/easy_unlock_auth_attempt.cc b/chrome/browser/signin/easy_unlock_auth_attempt.cc
|
| index 922ec204b9220c65fd14d9951e1bcfdaebf33010..9b82890ce93d815b901065c7efcdf6ee19b42990 100644
|
| --- a/chrome/browser/signin/easy_unlock_auth_attempt.cc
|
| +++ b/chrome/browser/signin/easy_unlock_auth_attempt.cc
|
| @@ -118,7 +118,15 @@
|
|
|
| state_ = STATE_RUNNING;
|
|
|
| - if (!app_manager_->SendAuthAttemptEvent()) {
|
| + // We need this workaround for ProximityAuthBleSystem, which is already
|
| + // notified in EasyUnlockService. No notification is sent when only the
|
| + // |kEnableBluetoothLowEnergyDiscovery| flag is set, and
|
| + // |app_manager_->SendAuthAttemptEvent()| returns false. As a result, the auth
|
| + // attempt will always fail.
|
| + // TODO(sacomoto): Remove this when it's not needed anymore.
|
| + if (!app_manager_->SendAuthAttemptEvent() &&
|
| + !base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + proximity_auth::switches::kEnableBluetoothLowEnergyDiscovery)) {
|
| Cancel(user_id_);
|
| return false;
|
| }
|
|
|