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

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

Issue 2915943002: kiosk: Skip LOGGED_IN_NOT_ACTIVE during app launch (Closed)
Patch Set: Created 3 years, 7 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 607e9fa10a0bc70e0dd31f019e2fffda757bf6a7..f37ca1d9f1ed56899a561709d3fd27b0641fe639 100644
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc
@@ -1219,8 +1219,12 @@ void UserSessionManager::FinalizePrepareProfile(Profile* profile) {
profile->OnLogin();
- session_manager::SessionManager::Get()->SetSessionState(
- session_manager::SessionState::LOGGED_IN_NOT_ACTIVE);
+ // Skip LOGGED_IN_NOT_ACTIVE state for kiosk launching so that login dialog
+ // such as network config during launch is put on top of the login screen.
+ if (!user_manager->IsLoggedInAsKioskApp()) {
+ session_manager::SessionManager::Get()->SetSessionState(
+ session_manager::SessionState::LOGGED_IN_NOT_ACTIVE);
+ }
// Send the notification before creating the browser so additional objects
// that need the profile (e.g. the launcher) can be created first.
« 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