Revert of Introduce SessionManager that will contain code to start user session on...
commitd1103684253d34a5b0a43cabeb6c697f03568320
authorrouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 Jun 2014 18:40:14 +0000 (12 18:40 +0000)
committerrouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 Jun 2014 18:40:14 +0000 (12 18:40 +0000)
tree887a8ca1f8ae0d8ff8874c0dfb55452b3100ec74
parent834e0623124e20b0af7006acd0fa4c88da5b3de0
Revert of Introduce SessionManager that will contain code to start user session on Chrome OS (https://codereview.chromium.org/318853004/)

Reason for revert:
Appears to have broken the kiosk and auth browser tests in http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%281%29/builds/30916

Original issue's description:
> Introduce 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

TBR=antrim@chromium.org,bauerb@chromium.org,nkostylev@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=370175,276163

Review URL: https://codereview.chromium.org/328383003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276760 0039d316-1c4b-4281-b951-d872f2087c98
21 files changed:
chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc
chrome/browser/chromeos/chrome_browser_main_chromeos.cc
chrome/browser/chromeos/login/existing_user_controller.cc
chrome/browser/chromeos/login/existing_user_controller_browsertest.cc
chrome/browser/chromeos/login/fake_login_utils.cc
chrome/browser/chromeos/login/fake_login_utils.h
chrome/browser/chromeos/login/login_utils.cc
chrome/browser/chromeos/login/login_utils.h
chrome/browser/chromeos/login/login_utils_browsertest.cc
chrome/browser/chromeos/login/mock_login_utils.cc
chrome/browser/chromeos/login/mock_login_utils.h
chrome/browser/chromeos/login/session/session_manager.cc [deleted file]
chrome/browser/chromeos/login/session/session_manager.h [deleted file]
chrome/browser/chromeos/login/test_login_utils.cc
chrome/browser/chromeos/login/test_login_utils.h
chrome/browser/chromeos/login/users/user_manager_impl.cc
chrome/browser/chromeos/preferences.cc
chrome/browser/prefs/browser_prefs.cc
chrome/browser/ui/webui/chromeos/login/reset_screen_handler.cc
chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h
chrome/chrome_browser_chromeos.gypi