DescriptionIntroduce SessionManager that will contain code to start user session on Chrome OS
Move profile creation / session initialization (prefs/RLZ) as well as some of OAuth session init
related code from LoginUtils to SessionManager. LoginUtils will temporarily implement
SessionManager::Delegate interface till existing test coverage is migrated from LoginUtils interface.
SessionManager will later use concept of UserSession (see design proposal at http://goto/cros-login-c14n).
LoginUtils::OnPrepareProfile() is split into
StartSession()
--PreStartSession() - things like switching logging dest
--CreateUserSession() - will eventually create UserSession instance
--StartCrosSession() - notify cros::SessionManager
--NotifyUserLoggedIn() - UserManager::UserLoggedIn()
--PrepareProfile()
PrepareProfile() - calls PM::CreateProfileAsync()
--OnProfileCreated()
----InitProfilePreferences() - early initialization
----UserProfileInitialized()
------transfer signin profile auth date (cookies/proxy auth/certs)
------RestoreAuthSessionImpl() - OAuth2LoginManager::RestoreSession()
----FinalizePrepareProfile(()
------Own TPM (if it didn't happen for some reason)
------Notify SAML offline signin limiter
------Notify ProfileImpl
------chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED
------InitRLZ (for primary user)
Minor cleanup
* Unify DemoApp profile initialization flow with regular one
* Don't pass display_email to LoginUtils::PrepareProfile
* Move powerwash related prefs registration to ResetScreenHandler
* Cleanup M31 migration code for |prefs::kProfileIsManaged| in LoginUtilsImpl::InitProfilePreferences()
BUG=370175, 276163
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276626
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277238
Patch Set 1 : . #Patch Set 2 : move PrepareProfile code to SessionManager #Patch Set 3 : iterate #Patch Set 4 : Remove login component / UserManager releated changes #Patch Set 5 : cleanup #Patch Set 6 : Fix DemoAppLauncherTest #Patch Set 7 : move more OAuth related methods #Patch Set 8 : . #
Total comments: 5
Patch Set 9 : rebase + nits #Patch Set 10 : rebase #Messages
Total messages: 37 (0 generated)
|