| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/existing_user_controller.h" | 5 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 if (login_performer_delegate_.get()) | 415 if (login_performer_delegate_.get()) |
| 416 delegate = login_performer_delegate_.get(); | 416 delegate = login_performer_delegate_.get(); |
| 417 // Only one instance of LoginPerformer should exist at a time. | 417 // Only one instance of LoginPerformer should exist at a time. |
| 418 login_performer_.reset(NULL); | 418 login_performer_.reset(NULL); |
| 419 login_performer_.reset(new LoginPerformer(delegate)); | 419 login_performer_.reset(new LoginPerformer(delegate)); |
| 420 } | 420 } |
| 421 | 421 |
| 422 is_login_in_progress_ = true; | 422 is_login_in_progress_ = true; |
| 423 if (gaia::ExtractDomainName(user_context.GetUserID()) == | 423 if (gaia::ExtractDomainName(user_context.GetUserID()) == |
| 424 UserManager::kLocallyManagedUserDomain) { | 424 UserManager::kLocallyManagedUserDomain) { |
| 425 login_performer_->LoginAsLocallyManagedUser( | 425 login_performer_->LoginAsLocallyManagedUser(user_context); |
| 426 UserContext(user_context.GetUserID(), | |
| 427 user_context.GetPassword(), | |
| 428 std::string())); // auth_code | |
| 429 } else { | 426 } else { |
| 430 login_performer_->PerformLogin(user_context, auth_mode); | 427 login_performer_->PerformLogin(user_context, auth_mode); |
| 431 } | 428 } |
| 432 SendAccessibilityAlert( | 429 SendAccessibilityAlert( |
| 433 l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_LOGIN_SIGNING_IN)); | 430 l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_LOGIN_SIGNING_IN)); |
| 434 } | 431 } |
| 435 | 432 |
| 436 void ExistingUserController::LoginAsRetailModeUser() { | 433 void ExistingUserController::LoginAsRetailModeUser() { |
| 437 // Stop the auto-login timer when attempting login. | 434 // Stop the auto-login timer when attempting login. |
| 438 StopPublicSessionAutoLoginTimer(); | 435 StopPublicSessionAutoLoginTimer(); |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1120 } | 1117 } |
| 1121 | 1118 |
| 1122 void ExistingUserController::SendAccessibilityAlert( | 1119 void ExistingUserController::SendAccessibilityAlert( |
| 1123 const std::string& alert_text) { | 1120 const std::string& alert_text) { |
| 1124 AccessibilityAlertInfo event(ProfileHelper::GetSigninProfile(), alert_text); | 1121 AccessibilityAlertInfo event(ProfileHelper::GetSigninProfile(), alert_text); |
| 1125 SendControlAccessibilityNotification( | 1122 SendControlAccessibilityNotification( |
| 1126 ui::AX_EVENT_VALUE_CHANGED, &event); | 1123 ui::AX_EVENT_VALUE_CHANGED, &event); |
| 1127 } | 1124 } |
| 1128 | 1125 |
| 1129 } // namespace chromeos | 1126 } // namespace chromeos |
| OLD | NEW |