Index: chrome/browser/ui/startup/startup_browser_creator.cc |
diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc |
index d8b21e373beda1d3ab05db5f3a7c39fc3028cbe1..5a7d914c7a323bfa0ea31ff3a716e3af9deb6cf7 100644 |
--- a/chrome/browser/ui/startup/startup_browser_creator.cc |
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc |
@@ -85,6 +85,8 @@ |
#include "chrome/browser/chromeos/profiles/profile_helper.h" |
#include "chrome/browser/lifetime/application_lifetime.h" |
#include "chromeos/chromeos_switches.h" |
+#include "chromeos/cryptohome/cryptohome_parameters.h" |
+#include "chromeos/login/auth/utils.h" |
#include "components/user_manager/user_manager.h" |
#endif |
@@ -673,7 +675,9 @@ bool StartupBrowserCreator::ProcessCmdLineImpl( |
// possible. We should instead cleanly exit and go back to the OOBE screen, |
// where we will launch again after the timeout has expired. |
if (chromeos::DemoAppLauncher::IsDemoAppSession( |
- command_line.GetSwitchValueASCII(chromeos::switches::kLoginUser))) { |
+ cryptohome::GetAccountId(cryptohome::Identification::FromString( |
+ command_line.GetSwitchValueASCII( |
+ chromeos::switches::kLoginUser))))) { |
chrome::AttemptUserExit(); |
return false; |
} |