OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/login/session/user_session_manager.h" | 5 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "chrome/browser/browser_shutdown.h" | 30 #include "chrome/browser/browser_shutdown.h" |
31 #include "chrome/browser/chrome_notification_types.h" | 31 #include "chrome/browser/chrome_notification_types.h" |
32 #include "chrome/browser/chromeos/arc/arc_migration_guide_notification.h" | 32 #include "chrome/browser/chromeos/arc/arc_migration_guide_notification.h" |
33 #include "chrome/browser/chromeos/arc/arc_service_launcher.h" | 33 #include "chrome/browser/chromeos/arc/arc_service_launcher.h" |
34 #include "chrome/browser/chromeos/arc/arc_util.h" | 34 #include "chrome/browser/chromeos/arc/arc_util.h" |
35 #include "chrome/browser/chromeos/base/locale_util.h" | 35 #include "chrome/browser/chromeos/base/locale_util.h" |
36 #include "chrome/browser/chromeos/boot_times_recorder.h" | 36 #include "chrome/browser/chromeos/boot_times_recorder.h" |
37 #include "chrome/browser/chromeos/first_run/first_run.h" | 37 #include "chrome/browser/chromeos/first_run/first_run.h" |
38 #include "chrome/browser/chromeos/first_run/goodies_displayer.h" | 38 #include "chrome/browser/chromeos/first_run/goodies_displayer.h" |
39 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 39 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
| 40 #include "chrome/browser/chromeos/lock_screen_apps/state_controller.h" |
40 #include "chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h" | 41 #include "chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h" |
41 #include "chrome/browser/chromeos/login/chrome_restart_request.h" | 42 #include "chrome/browser/chromeos/login/chrome_restart_request.h" |
42 #include "chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h" | 43 #include "chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h" |
43 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" | 44 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" |
44 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 45 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
45 #include "chrome/browser/chromeos/login/helper.h" | 46 #include "chrome/browser/chromeos/login/helper.h" |
46 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 47 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
47 #include "chrome/browser/chromeos/login/profile_auth_data.h" | 48 #include "chrome/browser/chromeos/login/profile_auth_data.h" |
48 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter.h" | 49 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter.h" |
49 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter_factory
.h" | 50 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter_factory
.h" |
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1215 content::Details<Profile>(profile)); | 1216 content::Details<Profile>(profile)); |
1216 | 1217 |
1217 // Initialize various services only for primary user. | 1218 // Initialize various services only for primary user. |
1218 const user_manager::User* user = | 1219 const user_manager::User* user = |
1219 ProfileHelper::Get()->GetUserByProfile(profile); | 1220 ProfileHelper::Get()->GetUserByProfile(profile); |
1220 if (user_manager->GetPrimaryUser() == user) { | 1221 if (user_manager->GetPrimaryUser() == user) { |
1221 InitRlz(profile); | 1222 InitRlz(profile); |
1222 InitializeCerts(profile); | 1223 InitializeCerts(profile); |
1223 InitializeCRLSetFetcher(user); | 1224 InitializeCRLSetFetcher(user); |
1224 InitializeCertificateTransparencyComponents(user); | 1225 InitializeCertificateTransparencyComponents(user); |
| 1226 if (lock_screen_apps::StateController::IsEnabled()) |
| 1227 lock_screen_apps::StateController::Get()->SetPrimaryProfile(profile); |
1225 | 1228 |
1226 arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile); | 1229 arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile); |
1227 | 1230 |
1228 TetherService::Get(profile)->StartTetherIfEnabled(); | 1231 TetherService::Get(profile)->StartTetherIfEnabled(); |
1229 } | 1232 } |
1230 | 1233 |
1231 UpdateEasyUnlockKeys(user_context_); | 1234 UpdateEasyUnlockKeys(user_context_); |
1232 user_context_.ClearSecrets(); | 1235 user_context_.ClearSecrets(); |
1233 if (TokenHandlesEnabled()) { | 1236 if (TokenHandlesEnabled()) { |
1234 CreateTokenUtilIfMissing(); | 1237 CreateTokenUtilIfMissing(); |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1939 ->browser_policy_connector_chromeos() | 1942 ->browser_policy_connector_chromeos() |
1940 ->IsEnterpriseManaged()) { | 1943 ->IsEnterpriseManaged()) { |
1941 return false; | 1944 return false; |
1942 } | 1945 } |
1943 | 1946 |
1944 // Do not show end of life notification if this is a guest session | 1947 // Do not show end of life notification if this is a guest session |
1945 return !profile->IsGuestSession(); | 1948 return !profile->IsGuestSession(); |
1946 } | 1949 } |
1947 | 1950 |
1948 } // namespace chromeos | 1951 } // namespace chromeos |
OLD | NEW |