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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 #include "chromeos/chromeos_switches.h" | 85 #include "chromeos/chromeos_switches.h" |
86 #include "chromeos/cryptohome/cryptohome_parameters.h" | 86 #include "chromeos/cryptohome/cryptohome_parameters.h" |
87 #include "chromeos/cryptohome/cryptohome_util.h" | 87 #include "chromeos/cryptohome/cryptohome_util.h" |
88 #include "chromeos/dbus/cryptohome_client.h" | 88 #include "chromeos/dbus/cryptohome_client.h" |
89 #include "chromeos/dbus/dbus_thread_manager.h" | 89 #include "chromeos/dbus/dbus_thread_manager.h" |
90 #include "chromeos/dbus/session_manager_client.h" | 90 #include "chromeos/dbus/session_manager_client.h" |
91 #include "chromeos/login/auth/stub_authenticator.h" | 91 #include "chromeos/login/auth/stub_authenticator.h" |
92 #include "chromeos/network/portal_detector/network_portal_detector.h" | 92 #include "chromeos/network/portal_detector/network_portal_detector.h" |
93 #include "chromeos/network/portal_detector/network_portal_detector_strategy.h" | 93 #include "chromeos/network/portal_detector/network_portal_detector_strategy.h" |
94 #include "chromeos/settings/cros_settings_names.h" | 94 #include "chromeos/settings/cros_settings_names.h" |
95 #include "components/arc/arc_bridge_service.h" | |
96 #include "components/component_updater/component_updater_service.h" | 95 #include "components/component_updater/component_updater_service.h" |
97 #include "components/flags_ui/pref_service_flags_storage.h" | 96 #include "components/flags_ui/pref_service_flags_storage.h" |
98 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 97 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
99 #include "components/prefs/pref_member.h" | 98 #include "components/prefs/pref_member.h" |
100 #include "components/prefs/pref_registry_simple.h" | 99 #include "components/prefs/pref_registry_simple.h" |
101 #include "components/prefs/pref_service.h" | 100 #include "components/prefs/pref_service.h" |
102 #include "components/quirks/quirks_manager.h" | 101 #include "components/quirks/quirks_manager.h" |
103 #include "components/session_manager/core/session_manager.h" | 102 #include "components/session_manager/core/session_manager.h" |
104 #include "components/signin/core/account_id/account_id.h" | 103 #include "components/signin/core/account_id/account_id.h" |
105 #include "components/signin/core/browser/account_tracker_service.h" | 104 #include "components/signin/core/browser/account_tracker_service.h" |
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1179 | 1178 |
1180 // Initialize various services only for primary user. | 1179 // Initialize various services only for primary user. |
1181 const user_manager::User* user = | 1180 const user_manager::User* user = |
1182 ProfileHelper::Get()->GetUserByProfile(profile); | 1181 ProfileHelper::Get()->GetUserByProfile(profile); |
1183 if (user_manager->GetPrimaryUser() == user) { | 1182 if (user_manager->GetPrimaryUser() == user) { |
1184 InitRlz(profile); | 1183 InitRlz(profile); |
1185 InitializeCerts(profile); | 1184 InitializeCerts(profile); |
1186 InitializeCRLSetFetcher(user); | 1185 InitializeCRLSetFetcher(user); |
1187 InitializeCertificateTransparencyComponents(user); | 1186 InitializeCertificateTransparencyComponents(user); |
1188 | 1187 |
1189 if (arc::ArcBridgeService::GetEnabled( | 1188 arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile); |
hidehiko
2017/01/24 10:57:36
Ditto for chrome_session_manager.cc.
Luis Héctor Chávez
2017/01/24 17:00:37
Ditto.
| |
1190 base::CommandLine::ForCurrentProcess())) { | |
1191 arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile); | |
1192 } | |
1193 } | 1189 } |
1194 | 1190 |
1195 UpdateEasyUnlockKeys(user_context_); | 1191 UpdateEasyUnlockKeys(user_context_); |
1196 user_context_.ClearSecrets(); | 1192 user_context_.ClearSecrets(); |
1197 if (TokenHandlesEnabled()) { | 1193 if (TokenHandlesEnabled()) { |
1198 CreateTokenUtilIfMissing(); | 1194 CreateTokenUtilIfMissing(); |
1199 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) { | 1195 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) { |
1200 if (!token_handle_fetcher_.get()) { | 1196 if (!token_handle_fetcher_.get()) { |
1201 token_handle_fetcher_.reset(new TokenHandleFetcher( | 1197 token_handle_fetcher_.reset(new TokenHandleFetcher( |
1202 token_handle_util_.get(), user->GetAccountId())); | 1198 token_handle_util_.get(), user->GetAccountId())); |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1886 ->browser_policy_connector_chromeos() | 1882 ->browser_policy_connector_chromeos() |
1887 ->IsEnterpriseManaged()) { | 1883 ->IsEnterpriseManaged()) { |
1888 return false; | 1884 return false; |
1889 } | 1885 } |
1890 | 1886 |
1891 // Do not show end of life notification if this is a guest session | 1887 // Do not show end of life notification if this is a guest session |
1892 return !profile->IsGuestSession(); | 1888 return !profile->IsGuestSession(); |
1893 } | 1889 } |
1894 | 1890 |
1895 } // namespace chromeos | 1891 } // namespace chromeos |
OLD | NEW |