| Index: chrome/browser/signin/easy_unlock_service.cc
|
| diff --git a/chrome/browser/signin/easy_unlock_service.cc b/chrome/browser/signin/easy_unlock_service.cc
|
| index ed1b8b07fa6bc07f5c5bef0424d266619871a952..a9005303ae869e556cc34f16dbd9b4dad49002fa 100644
|
| --- a/chrome/browser/signin/easy_unlock_service.cc
|
| +++ b/chrome/browser/signin/easy_unlock_service.cc
|
| @@ -313,6 +313,12 @@ bool EasyUnlockService::IsAllowed() {
|
| #endif
|
| }
|
|
|
| +bool EasyUnlockService::IsEnabled() const {
|
| + // The feature is enabled iff there are any paired devices.
|
| + const base::ListValue* devices = GetRemoteDevices();
|
| + return devices && !devices->empty();
|
| +}
|
| +
|
| void EasyUnlockService::SetHardlockState(
|
| EasyUnlockScreenlockStateHandler::HardlockState state) {
|
| const std::string user_id = GetUserEmail();
|
|
|