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 <algorithm> | 9 #include <algorithm> |
10 #include <set> | 10 #include <set> |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "chrome/browser/browser_process_platform_part_chromeos.h" | 31 #include "chrome/browser/browser_process_platform_part_chromeos.h" |
32 #include "chrome/browser/browser_shutdown.h" | 32 #include "chrome/browser/browser_shutdown.h" |
33 #include "chrome/browser/chrome_notification_types.h" | 33 #include "chrome/browser/chrome_notification_types.h" |
34 #include "chrome/browser/chromeos/arc/arc_migration_guide_notification.h" | 34 #include "chrome/browser/chromeos/arc/arc_migration_guide_notification.h" |
35 #include "chrome/browser/chromeos/arc/arc_service_launcher.h" | 35 #include "chrome/browser/chromeos/arc/arc_service_launcher.h" |
36 #include "chrome/browser/chromeos/arc/arc_util.h" | 36 #include "chrome/browser/chromeos/arc/arc_util.h" |
37 #include "chrome/browser/chromeos/base/locale_util.h" | 37 #include "chrome/browser/chromeos/base/locale_util.h" |
38 #include "chrome/browser/chromeos/boot_times_recorder.h" | 38 #include "chrome/browser/chromeos/boot_times_recorder.h" |
39 #include "chrome/browser/chromeos/first_run/first_run.h" | 39 #include "chrome/browser/chromeos/first_run/first_run.h" |
40 #include "chrome/browser/chromeos/first_run/goodies_displayer.h" | 40 #include "chrome/browser/chromeos/first_run/goodies_displayer.h" |
| 41 #include "chrome/browser/chromeos/lock_screen_apps/state_controller.h" |
41 #include "chrome/browser/chromeos/logging.h" | 42 #include "chrome/browser/chromeos/logging.h" |
42 #include "chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h" | 43 #include "chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h" |
43 #include "chrome/browser/chromeos/login/chrome_restart_request.h" | 44 #include "chrome/browser/chromeos/login/chrome_restart_request.h" |
44 #include "chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h" | 45 #include "chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h" |
45 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" | 46 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" |
46 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 47 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
47 #include "chrome/browser/chromeos/login/helper.h" | 48 #include "chrome/browser/chromeos/login/helper.h" |
48 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 49 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
49 #include "chrome/browser/chromeos/login/profile_auth_data.h" | 50 #include "chrome/browser/chromeos/login/profile_auth_data.h" |
50 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter.h" | 51 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter.h" |
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 content::Details<Profile>(profile)); | 1245 content::Details<Profile>(profile)); |
1245 | 1246 |
1246 // Initialize various services only for primary user. | 1247 // Initialize various services only for primary user. |
1247 const user_manager::User* user = | 1248 const user_manager::User* user = |
1248 ProfileHelper::Get()->GetUserByProfile(profile); | 1249 ProfileHelper::Get()->GetUserByProfile(profile); |
1249 if (user_manager->GetPrimaryUser() == user) { | 1250 if (user_manager->GetPrimaryUser() == user) { |
1250 InitRlz(profile); | 1251 InitRlz(profile); |
1251 InitializeCerts(profile); | 1252 InitializeCerts(profile); |
1252 InitializeCRLSetFetcher(user); | 1253 InitializeCRLSetFetcher(user); |
1253 InitializeCertificateTransparencyComponents(user); | 1254 InitializeCertificateTransparencyComponents(user); |
| 1255 if (lock_screen_apps::StateController::IsEnabled()) |
| 1256 lock_screen_apps::StateController::Get()->SetPrimaryProfile(profile); |
1254 | 1257 |
1255 arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile); | 1258 arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile); |
1256 | 1259 |
1257 TetherService* tether_service = TetherService::Get(profile); | 1260 TetherService* tether_service = TetherService::Get(profile); |
1258 if (tether_service) | 1261 if (tether_service) |
1259 tether_service->StartTetherIfEnabled(); | 1262 tether_service->StartTetherIfEnabled(); |
1260 } | 1263 } |
1261 | 1264 |
1262 UpdateEasyUnlockKeys(user_context_); | 1265 UpdateEasyUnlockKeys(user_context_); |
1263 user_context_.ClearSecrets(); | 1266 user_context_.ClearSecrets(); |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1970 ->browser_policy_connector_chromeos() | 1973 ->browser_policy_connector_chromeos() |
1971 ->IsEnterpriseManaged()) { | 1974 ->IsEnterpriseManaged()) { |
1972 return false; | 1975 return false; |
1973 } | 1976 } |
1974 | 1977 |
1975 // Do not show end of life notification if this is a guest session | 1978 // Do not show end of life notification if this is a guest session |
1976 return !profile->IsGuestSession(); | 1979 return !profile->IsGuestSession(); |
1977 } | 1980 } |
1978 | 1981 |
1979 } // namespace chromeos | 1982 } // namespace chromeos |
OLD | NEW |