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

Issue 656283002: [session_manager] Move user session initialization code out of ExistingUserController (Closed)

Created:
6 years, 2 months ago by Nikita (slow)
Modified:
6 years, 2 months ago
CC:
chromium-reviews, pam+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[session_manager] Move user session initialization code out of ExistingUserController Added UserSessionManager::InitializeUserSession() (1) Launches browser for most common case (2) Continues new user sign in with TOS (public sessions)/image screen (new users) (3) For kiosk flow delegates launching app to the existing kiosk initialization flow (1) Currently results in LoginUtils::Get()->DoBrowserLaunch() which may postpone launching browser for these reasons: (a) There's custom user login flow defined like SupervisedUserCreationFlow. In that case login UI continues to live and custom flow UI is launched in that context. (b) User has different app locale which requires reloading resource_bundle prior to launching browser (c) User has custom flags set (or user flags are different from login screen flags defined by the owner), this requires restarting Chrome which will be launched in the active user session. Small refactoring in ExistingUserController, added * PerformPreLoginActions() - performs sets of actions right prior to login has been started. * PerformLoginFinishedActions() - performs set of actions when login has been completed or has been cancelled. BUG=370175 Committed: https://crrev.com/609c2d1de4a65aa066e3b518186100b0a76ef58e Cr-Commit-Position: refs/heads/master@{#300708}

Patch Set 1 : Add UserSessionManager::StartSessionType, move cmd line switches from EUC to SU login flow #

Patch Set 2 : move first run session init and browser launch out of EUC #

Total comments: 8

Patch Set 3 : review #

Patch Set 4 : fix kiosk test #

Patch Set 5 : update FakeLoginUtils to launch browser #

Total comments: 4

Patch Set 6 : add PerformPreLoginActions, PerformLoginFinishedActions methods #

Total comments: 8

Patch Set 7 : update mocks expectations #

Patch Set 8 : nits #

Patch Set 9 : PolicyLoadFailed() #

Patch Set 10 : comments #

Total comments: 5

Patch Set 11 : fix typo #

Patch Set 12 : review #

Patch Set 13 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -241 lines) Patch
M chrome/browser/chromeos/app_mode/kiosk_profile_loader.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 25 chunks +64 lines, -171 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_browsertest.cc View 1 2 3 4 5 6 7 chunks +7 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/login/fake_login_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +21 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/login_manager_test.cc View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 4 chunks +17 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.h View 1 2 7 chunks +39 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 chunks +126 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_login_flow.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_login_flow.cc View 1 2 4 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/test_login_utils.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/user_flow.h View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_flow.cc View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M google_apis/gaia/gaia_auth_util.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (12 generated)
Nikita (slow)
https://codereview.chromium.org/656283002/diff/20001/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (left): https://codereview.chromium.org/656283002/diff/20001/chrome/browser/chromeos/login/existing_user_controller.cc#oldcode882 chrome/browser/chromeos/login/existing_user_controller.cc:882: user_manager::UserManager* user_manager = user_manager::UserManager::Get(); This block is moved to ...
6 years, 2 months ago (2014-10-16 11:27:12 UTC) #2
Denis Kuznetsov (DE-MUC)
https://chromiumcodereview.appspot.com/656283002/diff/20001/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://chromiumcodereview.appspot.com/656283002/diff/20001/chrome/browser/chromeos/login/existing_user_controller.cc#newcode879 chrome/browser/chromeos/login/existing_user_controller.cc:879: auth_status_consumer_->OnAuthSuccess(UserContext()); Why do we pass empty user context here, ...
6 years, 2 months ago (2014-10-16 12:21:42 UTC) #3
Nikita (slow)
I still need to figure out why tests are failing, but I've addressed all your ...
6 years, 2 months ago (2014-10-17 13:17:42 UTC) #4
Nikita (slow)
ptal, all tests were fixed (changes in FakeLoginUtils + kiosk case separately).
6 years, 2 months ago (2014-10-20 05:47:46 UTC) #6
Nikita (slow)
+rogerta@ for google_apis/gaia/*
6 years, 2 months ago (2014-10-20 10:16:30 UTC) #9
Nikita (slow)
6 years, 2 months ago (2014-10-20 12:32:02 UTC) #12
Nikita (slow)
+ tnagel@ for couple of clarifications (see comments). https://codereview.chromium.org/656283002/diff/220001/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/656283002/diff/220001/chrome/browser/chromeos/login/existing_user_controller.cc#newcode476 chrome/browser/chromeos/login/existing_user_controller.cc:476: PerformLoginFinishedActions(false ...
6 years, 2 months ago (2014-10-20 12:40:48 UTC) #13
Denis Kuznetsov (DE-MUC)
https://chromiumcodereview.appspot.com/656283002/diff/100001/chrome/browser/chromeos/login/fake_login_utils.cc File chrome/browser/chromeos/login/fake_login_utils.cc (right): https://chromiumcodereview.appspot.com/656283002/diff/100001/chrome/browser/chromeos/login/fake_login_utils.cc#newcode101 chrome/browser/chromeos/login/fake_login_utils.cc:101: LoginDisplayHostImpl::default_host()); browser_launch = true? https://chromiumcodereview.appspot.com/656283002/diff/100001/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://chromiumcodereview.appspot.com/656283002/diff/100001/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode947 ...
6 years, 2 months ago (2014-10-20 13:38:59 UTC) #14
Nikita (slow)
https://codereview.chromium.org/656283002/diff/100001/chrome/browser/chromeos/login/fake_login_utils.cc File chrome/browser/chromeos/login/fake_login_utils.cc (right): https://codereview.chromium.org/656283002/diff/100001/chrome/browser/chromeos/login/fake_login_utils.cc#newcode101 chrome/browser/chromeos/login/fake_login_utils.cc:101: LoginDisplayHostImpl::default_host()); On 2014/10/20 13:38:59, Denis Kuznetsov wrote: > browser_launch ...
6 years, 2 months ago (2014-10-20 13:52:11 UTC) #15
Roger Tawa OOO till Jul 10th
google_apis lgtm
6 years, 2 months ago (2014-10-20 14:32:00 UTC) #16
Denis Kuznetsov (DE-MUC)
lgtm
6 years, 2 months ago (2014-10-21 14:58:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/656283002/260001
6 years, 2 months ago (2014-10-21 15:05:40 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/25618)
6 years, 2 months ago (2014-10-21 16:36:30 UTC) #21
Thiemo Nagel
May I ask to fully spell out "EUC" in the title of the CL? The ...
6 years, 2 months ago (2014-10-22 08:40:01 UTC) #22
Nikita (slow)
https://codereview.chromium.org/656283002/diff/220001/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/656283002/diff/220001/chrome/browser/chromeos/login/existing_user_controller.cc#newcode476 chrome/browser/chromeos/login/existing_user_controller.cc:476: PerformLoginFinishedActions(false /* don't start public session timer */); On ...
6 years, 2 months ago (2014-10-22 10:22:25 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/656283002/280001
6 years, 2 months ago (2014-10-22 12:01:13 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/27017) win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_swarming/builds/24657) win_chromium_x64_rel_swarming ...
6 years, 2 months ago (2014-10-22 12:08:06 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/656283002/280001
6 years, 2 months ago (2014-10-22 14:23:20 UTC) #30
commit-bot: I haz the power
Committed patchset #13 (id:280001)
6 years, 2 months ago (2014-10-22 18:14:27 UTC) #31
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 18:15:12 UTC) #32
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/609c2d1de4a65aa066e3b518186100b0a76ef58e
Cr-Commit-Position: refs/heads/master@{#300708}

Powered by Google App Engine
This is Rietveld 408576698