| Index: chrome/browser/chromeos/login/lock/screen_locker.cc
|
| diff --git a/chrome/browser/chromeos/login/lock/screen_locker.cc b/chrome/browser/chromeos/login/lock/screen_locker.cc
|
| index 017e7146c08373a1f3a04748a3b887d2460f56a4..8ba8b9171ebc1a0a1b1f9dddaf7e6241cd65bbfb 100644
|
| --- a/chrome/browser/chromeos/login/lock/screen_locker.cc
|
| +++ b/chrome/browser/chromeos/login/lock/screen_locker.cc
|
| @@ -385,10 +385,8 @@ void ScreenLocker::Show() {
|
|
|
| // Check whether the currently logged in user is a guest account and if so,
|
| // refuse to lock the screen (crosbug.com/23764).
|
| - // For a demo user, we should never show the lock screen (crosbug.com/27647).
|
| - if (user_manager::UserManager::Get()->IsLoggedInAsGuest() ||
|
| - user_manager::UserManager::Get()->IsLoggedInAsDemoUser()) {
|
| - VLOG(1) << "Refusing to lock screen for guest/demo account";
|
| + if (user_manager::UserManager::Get()->IsLoggedInAsGuest()) {
|
| + VLOG(1) << "Refusing to lock screen for guest account";
|
| return;
|
| }
|
|
|
| @@ -425,10 +423,9 @@ void ScreenLocker::Hide() {
|
| #endif
|
|
|
| DCHECK(base::MessageLoopForUI::IsCurrent());
|
| - // For a guest/demo user, screen_locker_ would have never been initialized.
|
| - if (user_manager::UserManager::Get()->IsLoggedInAsGuest() ||
|
| - user_manager::UserManager::Get()->IsLoggedInAsDemoUser()) {
|
| - VLOG(1) << "Refusing to hide lock screen for guest/demo account";
|
| + // For a guest user, screen_locker_ would have never been initialized.
|
| + if (user_manager::UserManager::Get()->IsLoggedInAsGuest()) {
|
| + VLOG(1) << "Refusing to hide lock screen for guest account";
|
| return;
|
| }
|
|
|
|
|