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

Issue 318853004: Introduce SessionManager that will contain code to start user session on Chrome OS (Closed)

Created:
6 years, 6 months ago by Nikita (slow)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org, xiyuan, zel
Visibility:
Public.

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 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+823 lines, -639 lines) Patch
M chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_browsertest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/fake_login_utils.h View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/fake_login_utils.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.h View 1 2 3 4 5 6 5 chunks +1 line, -18 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 7 8 9 12 chunks +32 lines, -568 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils_browsertest.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/login/mock_login_utils.h View 1 2 3 4 5 6 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/mock_login_utils.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/chromeos/login/session/session_manager.h View 1 2 3 4 5 6 7 8 1 chunk +169 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/session/session_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +578 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/test_login_utils.h View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/test_login_utils.cc View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/users/user_manager_impl.cc View 1 2 3 4 5 6 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/reset_screen_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
Nikita (slow)
Ready for review.
6 years, 6 months ago (2014-06-11 10:49:57 UTC) #1
Nikita (slow)
bauerb@ for chrome/browser/prefs/*
6 years, 6 months ago (2014-06-11 15:03:59 UTC) #2
Bernhard Bauer
c/b/p/ LGTM with a nit: https://codereview.chromium.org/318853004/diff/260001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/318853004/diff/260001/chrome/browser/prefs/browser_prefs.cc#newcode300 chrome/browser/prefs/browser_prefs.cc:300: chromeos::SessionManager::RegisterPrefs(registry); Move this down ...
6 years, 6 months ago (2014-06-11 15:17:09 UTC) #3
Denis Kuznetsov (DE-MUC)
https://chromiumcodereview.appspot.com/318853004/diff/260001/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc File chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc (left): https://chromiumcodereview.appspot.com/318853004/diff/260001/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc#oldcode163 chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc:163: std::string(), // display email nit: align comments? https://chromiumcodereview.appspot.com/318853004/diff/260001/chrome/browser/chromeos/login/session/session_manager.h File ...
6 years, 6 months ago (2014-06-11 15:38:51 UTC) #4
Denis Kuznetsov (DE-MUC)
lgtm
6 years, 6 months ago (2014-06-11 15:44:55 UTC) #5
Nikita (slow)
cc: zelidrag@, xiyuan@
6 years, 6 months ago (2014-06-11 15:54:50 UTC) #6
Nikita (slow)
https://chromiumcodereview.appspot.com/318853004/diff/260001/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc File chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc (left): https://chromiumcodereview.appspot.com/318853004/diff/260001/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc#oldcode163 chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc:163: std::string(), // display email On 2014/06/11 15:38:50, Denis Kuznetsov ...
6 years, 6 months ago (2014-06-11 16:44:02 UTC) #7
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 6 months ago (2014-06-11 16:55:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/318853004/280001
6 years, 6 months ago (2014-06-11 16:57:33 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 20:56:11 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:25:07 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19570)
6 years, 6 months ago (2014-06-11 21:25:08 UTC) #12
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 6 months ago (2014-06-11 21:42:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/318853004/280001
6 years, 6 months ago (2014-06-11 21:44:56 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:49:47 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:52:11 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19699)
6 years, 6 months ago (2014-06-11 21:52:12 UTC) #17
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 6 months ago (2014-06-11 21:56:58 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/318853004/280001
6 years, 6 months ago (2014-06-11 21:58:34 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 22:22:51 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:25:10 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19758)
6 years, 6 months ago (2014-06-11 22:25:11 UTC) #22
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 6 months ago (2014-06-12 05:47:40 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/318853004/280001
6 years, 6 months ago (2014-06-12 05:51:31 UTC) #24
commit-bot: I haz the power
Change committed as 276626
6 years, 6 months ago (2014-06-12 11:14:58 UTC) #25
please use gerrit instead
Did this break kiosk and auth browser tests in http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%281%29/builds/30916 ?
6 years, 6 months ago (2014-06-12 17:55:37 UTC) #26
please use gerrit instead
A revert of this CL has been created in https://codereview.chromium.org/328383003/ by rouslan@chromium.org. The reason for ...
6 years, 6 months ago (2014-06-12 18:02:59 UTC) #27
Nikita (slow)
On 2014/06/12 17:55:37, Rouslan Solomakhin wrote: > Did this break kiosk and auth browser tests ...
6 years, 6 months ago (2014-06-12 20:05:52 UTC) #28
xiyuan
emm... we need to property restore this CL. The revert fails in chromeos build: http://build.chromium.org/p/chromiumos.chromium/builders/Daisy%20%28chromium%29/builds/196 ...
6 years, 6 months ago (2014-06-12 20:46:19 UTC) #29
please use gerrit instead
On 2014/06/12 20:46:19, xiyuan wrote: > emm... we need to property restore this CL. > ...
6 years, 6 months ago (2014-06-12 20:47:14 UTC) #30
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 6 months ago (2014-06-12 21:02:59 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/318853004/280001
6 years, 6 months ago (2014-06-12 21:05:34 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-12 21:08:54 UTC) #33
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/login/login_utils.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 6 months ago (2014-06-12 21:08:55 UTC) #34
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 6 months ago (2014-06-13 22:17:00 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/318853004/300001
6 years, 6 months ago (2014-06-13 22:19:15 UTC) #36
commit-bot: I haz the power
6 years, 6 months ago (2014-06-14 19:21:25 UTC) #37
Message was sent while issue was closed.
Change committed as 277238

Powered by Google App Engine
This is Rietveld 408576698