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

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

Issue 954033003: Kiosk mode: SetFirstLoginPrefs() should be called for kiosk sessions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 5 years, 10 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 | components/user_manager/user_manager_base.h » ('j') | 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 d50a9a7296d2354ab837dc01d55e17161d4cda1a..246f4880e0b3262da320c88309bf6d33c15c55fb 100644
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc
@@ -860,6 +860,11 @@ void UserSessionManager::InitProfilePreferences(
const UserContext& user_context) {
const user_manager::User* user =
ProfileHelper::Get()->GetUserByProfile(profile);
+ if (user->GetType() == user_manager::USER_TYPE_KIOSK_APP &&
+ profile->IsNewProfile()) {
+ ChromeUserManager::Get()->SetIsCurrentUserNew(true);
+ }
+
if (user->is_active()) {
input_method::InputMethodManager* manager =
input_method::InputMethodManager::Get();
« no previous file with comments | « no previous file | components/user_manager/user_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698