Commit b9da88b5 authored by Toni Barzic's avatar Toni Barzic Committed by Commit Bot

Skip RestartToApplyPerSessionFlags for lock screen apps profile

BUG=715781

Change-Id: Id936a1c57a8d8d5796cec0bc013af4cce26f16b8
Reviewed-on: https://chromium-review.googlesource.com/580647Reviewed-by: default avatarAlexander Alekseev <alemate@chromium.org>
Commit-Queue: Toni Barzic <tbarzic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#488508}
parent f94c3312
...@@ -768,8 +768,10 @@ bool UserSessionManager::RestartToApplyPerSessionFlagsIfNeed( ...@@ -768,8 +768,10 @@ bool UserSessionManager::RestartToApplyPerSessionFlagsIfNeed(
if (!session_manager_client->SupportsRestartToApplyUserFlags()) if (!session_manager_client->SupportsRestartToApplyUserFlags())
return false; return false;
if (ProfileHelper::IsSigninProfile(profile)) if (ProfileHelper::IsSigninProfile(profile) ||
ProfileHelper::IsLockScreenAppProfile(profile)) {
return false; return false;
}
// Kiosk sessions keeps the startup flags. // Kiosk sessions keeps the startup flags.
if (user_manager::UserManager::Get() && if (user_manager::UserManager::Get() &&
......
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