Index: chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc |
diff --git a/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc b/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc |
index 5612da0f3753ab1849b83916c5b388035ad7ec61..638fdb0c22a925bb877769c3157ded1420524f42 100644 |
--- a/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc |
+++ b/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc |
@@ -158,7 +158,7 @@ |
// we switch this back to the demo user name to correctly identify this |
// user as a demo user. |
UserContext context = user_context; |
- if (context.GetAccountId() == login::GuestAccountId()) |
+ if (context.GetUserID() == chromeos::login::kGuestUserName) |
context.SetUserID(login::DemoAccountId().GetUserEmail()); |
UserSessionManager::GetInstance()->StartSession( |
context, UserSessionManager::PRIMARY_USER_SESSION, |