Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(861)

Unified Diff: chrome/browser/chromeos/login/session/user_session_manager.cc

Issue 2649903004: kiosk: Allow startup flags for kiosk sessions (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/session/user_session_manager.cc
diff --git a/chrome/browser/chromeos/login/session/user_session_manager.cc b/chrome/browser/chromeos/login/session/user_session_manager.cc
index e4a0cb8f2f5f17d7e367184b8e37cf0cf74a2ebf..df305cb67d15e27f0988e08a618c89669d0e7a5f 100644
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc
@@ -723,6 +723,12 @@ bool UserSessionManager::RestartToApplyPerSessionFlagsIfNeed(
if (ProfileHelper::IsSigninProfile(profile))
return false;
+ // Kiosk sessions keeps the startup flags.
+ if (user_manager::UserManager::Get() &&
+ user_manager::UserManager::Get()->IsLoggedInAsKioskApp()) {
+ return false;
+ }
+
if (early_restart && !CanPerformEarlyRestart())
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698