/external/chromium_org/chromeos/login/auth/ |
D | mock_authenticator.cc | 21 const UserContext& user_context) { in CompleteLogin() argument 22 if (expected_user_context_ != user_context) in CompleteLogin() 28 const UserContext& user_context) { in AuthenticateToLogin() argument 29 if (user_context == expected_user_context_) { in AuthenticateToLogin() 43 void MockAuthenticator::AuthenticateToUnlock(const UserContext& user_context) { in AuthenticateToUnlock() argument 44 AuthenticateToLogin(NULL /* not used */, user_context); in AuthenticateToUnlock() 47 void MockAuthenticator::LoginAsSupervisedUser(const UserContext& user_context) { in LoginAsSupervisedUser() argument 48 UserContext new_user_context = user_context; in LoginAsSupervisedUser() 49 new_user_context.SetUserIDHash(user_context.GetUserID()); in LoginAsSupervisedUser() 54 UserContext user_context("demo-mode"); in LoginRetailMode() local [all …]
|
D | extended_authenticator_impl.cc | 148 const UserContext& user_context, in TransformKeyIfNeeded() argument 150 if (user_context.GetKey()->GetKeyType() != Key::KEY_TYPE_PASSWORD_PLAIN) { in TransformKeyIfNeeded() 151 callback.Run(user_context); in TransformKeyIfNeeded() 159 user_context, in TransformKeyIfNeeded() 164 UserContext transformed_context = user_context; in TransformKeyIfNeeded() 187 const UserContext& user_context) { in DoAuthenticateToMount() argument 190 std::string canonicalized = gaia::CanonicalizeEmail(user_context.GetUserID()); in DoAuthenticateToMount() 192 const Key* const key = user_context.GetKey(); in DoAuthenticateToMount() 203 user_context, in DoAuthenticateToMount() 209 const UserContext& user_context) { in DoAuthenticateToCheck() argument [all …]
|
D | cryptohome_authenticator.cc | 122 const Key* key = attempt->user_context.GetKey(); in DoMount() 148 cryptohome::Identification(attempt->user_context.GetUserID()), in DoMount() 163 attempt->user_context.GetKey()->GetKeyType()); in OnGetSystemSalt() 165 attempt->user_context.GetKey()->Transform( in OnGetSystemSalt() 225 attempt->user_context.GetKey()->Transform( in OnGetKeyDataEx() 259 if (attempt->user_context.GetKey()->GetKeyType() != in StartMount() 266 cryptohome::Identification(attempt->user_context.GetUserID()), in StartMount() 286 attempt->user_context.GetUserID(), in MountGuestAndGetHash() 295 attempt->user_context.GetUserID(), in MountPublic() 302 attempt->user_context.GetUserID(), in MountPublic() [all …]
|
D | mock_auth_status_consumer.h | 21 MOCK_METHOD1(OnRetailModeAuthSuccess, void(const UserContext& user_context)); 22 MOCK_METHOD1(OnAuthSuccess, void(const UserContext& user_context)); 29 static void OnRetailModeSuccessQuit(const UserContext& user_context); 30 static void OnRetailModeSuccessQuitAndFail(const UserContext& user_context); 37 static void OnSuccessQuit(const UserContext& user_context); 38 static void OnSuccessQuitAndFail(const UserContext& user_context);
|
D | mock_authenticator.h | 29 const UserContext& user_context) OVERRIDE; 31 const UserContext& user_context) OVERRIDE; 32 virtual void AuthenticateToUnlock(const UserContext& user_context) OVERRIDE; 33 virtual void LoginAsSupervisedUser(const UserContext& user_context) OVERRIDE; 36 virtual void LoginAsPublicSession(const UserContext& user_context) OVERRIDE; 45 virtual void SetExpectedCredentials(const UserContext& user_context);
|
D | authenticator.h | 35 const UserContext& user_context) = 0; 41 const UserContext& user_context) = 0; 46 virtual void AuthenticateToUnlock(const UserContext& user_context) = 0; 49 virtual void LoginAsSupervisedUser(const UserContext& user_context) = 0; 58 virtual void LoginAsPublicSession(const UserContext& user_context) = 0;
|
D | online_attempt_host.cc | 28 const UserContext& user_context) { in Check() argument 29 if (user_context != current_attempt_user_context_) { in Check() 31 current_attempt_user_context_ = user_context; in Check() 33 state_.reset(new AuthAttemptState(user_context, in Check()
|
D | mock_auth_status_consumer.cc | 21 const UserContext& user_context) { in OnRetailModeSuccessQuit() argument 27 const UserContext& user_context) { in OnRetailModeSuccessQuitAndFail() argument 44 void MockAuthStatusConsumer::OnSuccessQuit(const UserContext& user_context) { in OnSuccessQuit() argument 50 const UserContext& user_context) { in OnSuccessQuitAndFail() argument
|
D | cryptohome_authenticator.h | 97 const UserContext& user_context) OVERRIDE; 108 const UserContext& user_context) OVERRIDE; 114 virtual void AuthenticateToUnlock(const UserContext& user_context) OVERRIDE; 119 virtual void LoginAsSupervisedUser(const UserContext& user_context) OVERRIDE; 132 virtual void LoginAsPublicSession(const UserContext& user_context) OVERRIDE;
|
D | auth_attempt_state.cc | 14 AuthAttemptState::AuthAttemptState(const UserContext& user_context, in AuthAttemptState() argument 19 : user_context(user_context), in AuthAttemptState() 58 user_context.SetUserIDHash(username_hash); in RecordUsernameHash()
|
/external/chromium_org/chrome/browser/chromeos/login/ |
D | login_manager_test.cc | 67 void LoginManagerTest::SetExpectedCredentials(const UserContext& user_context) { in SetExpectedCredentials() argument 68 login_utils().GetFakeLoginUtils()->SetExpectedCredentials(user_context); in SetExpectedCredentials() 71 bool LoginManagerTest::TryToLogin(const UserContext& user_context) { in TryToLogin() argument 72 if (!AddUserToSession(user_context)) in TryToLogin() 76 return active_user->email() == user_context.GetUserID(); in TryToLogin() 80 bool LoginManagerTest::AddUserToSession(const UserContext& user_context) { in AddUserToSession() argument 87 controller->Login(user_context, SigninSpecifics()); in AddUserToSession() 96 if ((*it)->email() == user_context.GetUserID()) in AddUserToSession() 103 UserContext user_context(user_id); in LoginUser() local 104 user_context.SetKey(Key("password")); in LoginUser() [all …]
|
D | existing_user_controller_browsertest.cc | 78 ACTION_P(CreateAuthenticator, user_context) { in ACTION_P() argument 79 return new MockAuthenticator(arg0, user_context); in ACTION_P() 236 UserContext user_context(kUsername); in IN_PROC_BROWSER_TEST_F() local 237 user_context.SetKey(Key(kPassword)); in IN_PROC_BROWSER_TEST_F() 238 user_context.SetUserIDHash(kUsername); in IN_PROC_BROWSER_TEST_F() 241 .WillOnce(WithArg<0>(CreateAuthenticator(user_context))); in IN_PROC_BROWSER_TEST_F() 242 EXPECT_CALL(*mock_login_utils_, PrepareProfile(user_context, _, _, _)) in IN_PROC_BROWSER_TEST_F() 258 existing_user_controller()->Login(user_context, SigninSpecifics()); in IN_PROC_BROWSER_TEST_F() 282 UserContext user_context(kUsername); in IN_PROC_BROWSER_TEST_F() local 283 user_context.SetKey(Key(kPassword)); in IN_PROC_BROWSER_TEST_F() [all …]
|
D | existing_user_controller.cc | 138 void RecordPasswordLoginEvent(const UserContext& user_context) { in RecordPasswordLoginEvent() argument 141 if (user_context.GetUserType() == user_manager::USER_TYPE_REGULAR && in RecordPasswordLoginEvent() 142 user_context.GetAuthFlow() == UserContext::AUTH_FLOW_OFFLINE && in RecordPasswordLoginEvent() 144 easy_unlock_service->RecordPasswordLoginEvent(user_context.GetUserID()); in RecordPasswordLoginEvent() 359 void ExistingUserController::CompleteLogin(const UserContext& user_context) { in CompleteLogin() argument 385 user_context)); in CompleteLogin() 389 const UserContext& user_context, in CompleteLoginInternal() argument 400 auto_enrollment_username_ = user_context.GetUserID(); in CompleteLoginInternal() 404 user_context, LoginPerformer::AUTH_MODE_EXTENSION); in CompleteLoginInternal() 405 ShowEnrollmentScreen(true, user_context.GetUserID()); in CompleteLoginInternal() [all …]
|
D | fake_login_utils.cc | 64 void FakeLoginUtils::PrepareProfile(const UserContext& user_context, in PrepareProfile() argument 69 user_context.GetUserID(), user_context.GetUserIDHash(), false); in PrepareProfile() 72 user_context.GetUserID()); in PrepareProfile() 79 user_context.GetUserID()); in PrepareProfile() 121 void FakeLoginUtils::SetExpectedCredentials(const UserContext& user_context) { in SetExpectedCredentials() argument 122 expected_user_context_ = user_context; in SetExpectedCredentials() 125 SetExpectedCredentials(user_context); in SetExpectedCredentials()
|
D | test_login_utils.cc | 14 TestLoginUtils::TestLoginUtils(const UserContext& user_context) in TestLoginUtils() argument 15 : expected_user_context_(user_context) { in TestLoginUtils() 26 const UserContext& user_context, in PrepareProfile() argument 30 if (user_context != expected_user_context_) in PrepareProfile()
|
D | existing_user_controller.h | 85 virtual void CompleteLogin(const UserContext& user_context) OVERRIDE; 88 virtual void Login(const UserContext& user_context, 103 void LoginAsPublicSession(const UserContext& user_context); 150 virtual void OnAuthSuccess(const UserContext& user_context) OVERRIDE; 212 const UserContext& user_context, 218 void PerformLogin(const UserContext& user_context, 231 const UserContext& user_context, 236 void LoginAsPublicSessionInternal(const UserContext& user_context);
|
D | login_manager_test.h | 44 void SetExpectedCredentials(const UserContext& user_context); 48 bool TryToLogin(const UserContext& user_context); 54 bool AddUserToSession(const UserContext& user_context);
|
/external/chromium_org/chrome/browser/chromeos/login/auth/ |
D | login_performer.cc | 89 void LoginPerformer::OnRetailModeAuthSuccess(const UserContext& user_context) { in OnRetailModeAuthSuccess() argument 92 AuthStatusConsumer::OnRetailModeAuthSuccess(user_context); in OnRetailModeAuthSuccess() 95 void LoginPerformer::OnAuthSuccess(const UserContext& user_context) { in OnAuthSuccess() argument 97 VLOG(1) << "LoginSuccess hash: " << user_context.GetUserIDHash(); in OnAuthSuccess() 102 delegate_->OnAuthSuccess(user_context); in OnAuthSuccess() 139 void LoginPerformer::PerformLogin(const UserContext& user_context, in PerformLogin() argument 142 user_context_ = user_context; in PerformLogin() 166 std::string email = gaia::CanonicalizeEmail(user_context.GetUserID()); in PerformLogin() 193 delegate_->WhiteListCheckFailed(user_context.GetUserID()); in PerformLogin() 200 const UserContext& user_context) { in LoginAsSupervisedUser() argument [all …]
|
D | login_performer.h | 62 const UserContext& user_context) OVERRIDE; 63 virtual void OnAuthSuccess(const UserContext& user_context) OVERRIDE; 70 void PerformLogin(const UserContext& user_context, 74 void LoginAsSupervisedUser(const UserContext& user_context); 83 void LoginAsPublicSession(const UserContext& user_context);
|
/external/chromium_org/chrome/browser/chromeos/login/easy_unlock/ |
D | easy_unlock_key_manager.cc | 42 void EasyUnlockKeyManager::RefreshKeys(const UserContext& user_context, in RefreshKeys() argument 46 DCHECK(!user_context.GetKey()->GetSecret().empty()); in RefreshKeys() 55 user_context, in RefreshKeys() 64 void EasyUnlockKeyManager::RemoveKeys(const UserContext& user_context, in RemoveKeys() argument 68 DCHECK(!user_context.GetKey()->GetSecret().empty()); in RemoveKeys() 74 user_context, in RemoveKeys() 83 const UserContext& user_context, in GetDeviceDataList() argument 89 user_context, in GetDeviceDataList() 96 user_context, in GetDeviceDataList() 209 RemoveKeys(op->user_context(), remove_start_index, RemoveKeysCallback()); in OnKeysCreated()
|
/external/chromium_org/chrome/browser/chromeos/login/lock/ |
D | screen_locker.cc | 204 void ScreenLocker::OnAuthSuccess(const UserContext& user_context) { in OnAuthSuccess() argument 207 if (!user_context.GetUserID().empty()) in OnAuthSuccess() 216 user_manager::UserManager::Get()->FindUser(user_context.GetUserID()); in OnAuthSuccess() 221 user_context.GetUserID()); in OnAuthSuccess() 223 UserSessionManager::GetInstance()->UpdateEasyUnlockKeys(user_context); in OnAuthSuccess() 229 authentication_capture_->user_context = user_context; in OnAuthSuccess() 250 auth_status_consumer_->OnAuthSuccess(authentication_capture_->user_context); in UnlockOnLoginSuccess() 259 void ScreenLocker::Authenticate(const UserContext& user_context) { in Authenticate() argument 260 LOG_ASSERT(IsUserLoggedIn(user_context.GetUserID())) in Authenticate() 269 FindUnlockUser(user_context.GetUserID())) { in Authenticate() [all …]
|
D | screen_locker_browsertest.cc | 158 UserContext user_context(chromeos::login::kStubUser); in IN_PROC_BROWSER_TEST_F() local 159 user_context.SetKey(Key("pass")); in IN_PROC_BROWSER_TEST_F() 160 tester->InjectMockAuthenticator(user_context); in IN_PROC_BROWSER_TEST_F() 204 UserContext user_context(chromeos::login::kStubUser); in IN_PROC_BROWSER_TEST_F() local 205 user_context.SetKey(Key("pass")); in IN_PROC_BROWSER_TEST_F() 206 tester->InjectMockAuthenticator(user_context); in IN_PROC_BROWSER_TEST_F()
|
/external/chromium_org/chrome/browser/chromeos/login/session/ |
D | user_session_manager.cc | 243 const UserContext& user_context, in StartSession() argument 251 VLOG(1) << "Starting session for " << user_context.GetUserID(); in StartSession() 254 CreateUserSession(user_context, has_auth_cookies); in StartSession() 597 void UserSessionManager::CreateUserSession(const UserContext& user_context, in CreateUserSession() argument 599 user_context_ = user_context; in CreateUserSession() 645 void UserSessionManager::OnProfileCreated(const UserContext& user_context, in OnProfileCreated() argument 654 InitProfilePreferences(profile, user_context); in OnProfileCreated() 662 user_context.GetUserID()); in OnProfileCreated() 675 const UserContext& user_context) { in InitProfilePreferences() argument 684 user_context.GetPublicSessionLocale(), in InitProfilePreferences() [all …]
|
D | user_session_manager.h | 87 void StartSession(const UserContext& user_context, 173 void UpdateEasyUnlockKeys(const UserContext& user_context); 197 void CreateUserSession(const UserContext& user_context, 205 void OnProfileCreated(const UserContext& user_context, 215 const UserContext& user_context);
|
/external/chromium_org/chrome/browser/signin/ |
D | easy_unlock_service_regular.cc | 70 if (short_lived_user_context_ && short_lived_user_context_->user_context()) { in LaunchSetup() 86 const chromeos::UserContext& user_context) { in OnUserContextFromReauth() argument 89 user_context, apps::AppLifetimeMonitorFactory::GetForProfile(profile()), in OnUserContextFromReauth() 163 if (short_lived_user_context_ && short_lived_user_context_->user_context() && in SetRemoteDevices() 167 chromeos::UserContext* user_context = in SetRemoteDevices() local 168 short_lived_user_context_->user_context(); in SetRemoteDevices() 173 *user_context, devices, in SetRemoteDevices()
|