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 a26b7ec86eac8a004b23856165e09ef96a92a16d..913ab27343e2fffdbf791fd84cd307dd8e7d30f4 100644 |
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc |
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc |
@@ -37,6 +37,7 @@ |
#include "chrome/browser/chromeos/boot_times_recorder.h" |
#include "chrome/browser/chromeos/first_run/first_run.h" |
#include "chrome/browser/chromeos/first_run/goodies_displayer.h" |
+#include "chrome/browser/chromeos/lock_screen_apps/state_controller.h" |
#include "chrome/browser/chromeos/logging.h" |
#include "chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h" |
#include "chrome/browser/chromeos/login/chrome_restart_request.h" |
@@ -1248,6 +1249,8 @@ void UserSessionManager::FinalizePrepareProfile(Profile* profile) { |
InitializeCerts(profile); |
InitializeCRLSetFetcher(user); |
InitializeCertificateTransparencyComponents(user); |
+ if (lock_screen_apps::StateController::IsEnabled()) |
+ lock_screen_apps::StateController::Get()->SetPrimaryProfile(profile); |
arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile); |