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

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

Issue 2654063003: Merge "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 9977aef8173de84e07483bf780865473dcd2e787..ca48465d52bdca6777798170777b374ccba359c8 100644
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc
@@ -694,6 +694,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