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 638fdb0c22a925bb877769c3157ded1420524f42..5612da0f3753ab1849b83916c5b388035ad7ec61 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 @@ void KioskProfileLoader::OnAuthSuccess(const UserContext& user_context) { |
// we switch this back to the demo user name to correctly identify this |
// user as a demo user. |
UserContext context = user_context; |
- if (context.GetUserID() == chromeos::login::kGuestUserName) |
+ if (context.GetAccountId() == login::GuestAccountId()) |
context.SetUserID(login::DemoAccountId().GetUserEmail()); |
UserSessionManager::GetInstance()->StartSession( |
context, UserSessionManager::PRIMARY_USER_SESSION, |