Commit 9b6c2e89 authored by Roman Sorokin's avatar Roman Sorokin Committed by Chromium LUCI CQ

CrOS: Set --login-profile for Guest session on linux-chromeos

This CL fixes DCHECK on Chrome OS when trying to run Guest session from
the login screen.

Fixed: 1163345
Change-Id: I9b4ad69186dd217fc792d67c480743430b171664
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2632653Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Roman Sorokin [CET] <rsorokin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845255}
parent a69f9fbe
...@@ -351,6 +351,9 @@ void GetOffTheRecordCommandLine(const GURL& start_url, ...@@ -351,6 +351,9 @@ void GetOffTheRecordCommandLine(const GURL& start_url,
otr_switches.SetString( otr_switches.SetString(
switches::kLoginUser, switches::kLoginUser,
cryptohome::Identification(user_manager::GuestAccountId()).id()); cryptohome::Identification(user_manager::GuestAccountId()).id());
if (!base::SysInfo::IsRunningOnChromeOS()) {
otr_switches.SetString(switches::kLoginProfile, chrome::kLegacyProfileDir);
}
// Override the home page. // Override the home page.
otr_switches.SetString(::switches::kHomePage, otr_switches.SetString(::switches::kHomePage,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment