| 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 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1081 // NOTIFICATION_PROFILE_CREATED which marks user profile as initialized. | 1081 // NOTIFICATION_PROFILE_CREATED which marks user profile as initialized. |
| 1082 base::ThreadTaskRunnerHandle::Get()->PostTask( | 1082 base::ThreadTaskRunnerHandle::Get()->PostTask( |
| 1083 FROM_HERE, | 1083 FROM_HERE, |
| 1084 base::Bind( | 1084 base::Bind( |
| 1085 &UserSessionManager::CompleteProfileCreateAfterAuthTransfer, | 1085 &UserSessionManager::CompleteProfileCreateAfterAuthTransfer, |
| 1086 AsWeakPtr(), profile)); | 1086 AsWeakPtr(), profile)); |
| 1087 } | 1087 } |
| 1088 return; | 1088 return; |
| 1089 } | 1089 } |
| 1090 | 1090 |
| 1091 if (user_context_.GetAuthFlow() == UserContext::AUTH_FLOW_ACTIVE_DIRECTORY) { |
| 1092 base::ThreadTaskRunnerHandle::Get()->PostTask( |
| 1093 FROM_HERE, |
| 1094 base::Bind(&UserSessionManager::CompleteProfileCreateAfterAuthTransfer, |
| 1095 AsWeakPtr(), profile)); |
| 1096 return; |
| 1097 } |
| 1098 |
| 1091 FinalizePrepareProfile(profile); | 1099 FinalizePrepareProfile(profile); |
| 1092 } | 1100 } |
| 1093 | 1101 |
| 1094 void UserSessionManager::CompleteProfileCreateAfterAuthTransfer( | 1102 void UserSessionManager::CompleteProfileCreateAfterAuthTransfer( |
| 1095 Profile* profile) { | 1103 Profile* profile) { |
| 1096 RestoreAuthSessionImpl(profile, has_auth_cookies_); | 1104 RestoreAuthSessionImpl(profile, has_auth_cookies_); |
| 1097 FinalizePrepareProfile(profile); | 1105 FinalizePrepareProfile(profile); |
| 1098 } | 1106 } |
| 1099 | 1107 |
| 1100 void UserSessionManager::FinalizePrepareProfile(Profile* profile) { | 1108 void UserSessionManager::FinalizePrepareProfile(Profile* profile) { |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1835 ->browser_policy_connector_chromeos() | 1843 ->browser_policy_connector_chromeos() |
| 1836 ->IsEnterpriseManaged()) { | 1844 ->IsEnterpriseManaged()) { |
| 1837 return false; | 1845 return false; |
| 1838 } | 1846 } |
| 1839 | 1847 |
| 1840 // Do not show end of life notification if this is a guest session | 1848 // Do not show end of life notification if this is a guest session |
| 1841 return !profile->IsGuestSession(); | 1849 return !profile->IsGuestSession(); |
| 1842 } | 1850 } |
| 1843 | 1851 |
| 1844 } // namespace chromeos | 1852 } // namespace chromeos |
| OLD | NEW |