| 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 59da516f646954231a3ad197df1d8e92c1e1bf4e..1afcbc9e128e45c78b357f083d75025b091eac08 100644
|
| --- a/chrome/browser/signin/easy_unlock_service.cc
|
| +++ b/chrome/browser/signin/easy_unlock_service.cc
|
| @@ -24,6 +24,7 @@
|
|
|
| #if defined(OS_CHROMEOS)
|
| #include "chrome/browser/chromeos/login/users/user_manager.h"
|
| +#include "chrome/browser/chromeos/profiles/profile_helper.h"
|
| #endif
|
|
|
| namespace {
|
| @@ -90,6 +91,9 @@ bool EasyUnlockService::IsAllowed() {
|
| if (chromeos::UserManager::Get()->IsLoggedInAsGuest())
|
| return false;
|
|
|
| + if (!chromeos::ProfileHelper::IsPrimaryProfile(profile_))
|
| + return false;
|
| +
|
| if (!profile_->GetPrefs()->GetBoolean(prefs::kEasyUnlockAllowed))
|
| return false;
|
|
|
|
|