OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/ui/webui/chromeos/login/signin_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <vector> | 10 #include <vector> |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 IDS_ENTERPRISE_ENROLLMENT_AUTH_INSECURE_URL_ERROR); | 512 IDS_ENTERPRISE_ENROLLMENT_AUTH_INSECURE_URL_ERROR); |
513 | 513 |
514 builder->Add("unrecoverableCryptohomeErrorMessageTitle", | 514 builder->Add("unrecoverableCryptohomeErrorMessageTitle", |
515 IDS_LOGIN_UNRECOVERABLE_CRYPTOHOME_ERROR_TITLE); | 515 IDS_LOGIN_UNRECOVERABLE_CRYPTOHOME_ERROR_TITLE); |
516 builder->Add("unrecoverableCryptohomeErrorMessage", | 516 builder->Add("unrecoverableCryptohomeErrorMessage", |
517 IDS_LOGIN_UNRECOVERABLE_CRYPTOHOME_ERROR_MESSAGE); | 517 IDS_LOGIN_UNRECOVERABLE_CRYPTOHOME_ERROR_MESSAGE); |
518 builder->Add("unrecoverableCryptohomeErrorContinue", | 518 builder->Add("unrecoverableCryptohomeErrorContinue", |
519 IDS_LOGIN_UNRECOVERABLE_CRYPTOHOME_ERROR_CONTINUE); | 519 IDS_LOGIN_UNRECOVERABLE_CRYPTOHOME_ERROR_CONTINUE); |
520 builder->Add("unrecoverableCryptohomeErrorRecreatingProfile", | 520 builder->Add("unrecoverableCryptohomeErrorRecreatingProfile", |
521 IDS_LOGIN_UNRECOVERABLE_CRYPTOHOME_ERROR_WAIT_MESSAGE); | 521 IDS_LOGIN_UNRECOVERABLE_CRYPTOHOME_ERROR_WAIT_MESSAGE); |
| 522 |
| 523 builder->Add("adEnterOldPasswordHint", IDS_AD_PASSWORD_CHANGE_OLD_PASSWORD); |
| 524 builder->Add("adEnterNewPasswordHint", IDS_AD_PASSWORD_CHANGE_NEW_PASSWORD); |
| 525 builder->Add("adRepeatNewPasswordHint", |
| 526 IDS_AD_PASSWORD_CHANGE_REPEAT_NEW_PASSWORD); |
| 527 builder->Add("adPasswordChangeMessage", IDS_AD_PASSWORD_CHANGE_MESSAGE); |
| 528 builder->Add("adOldPasswordError", IDS_AD_PASSWORD_CHANGE_INVALID_PASSWORD); |
| 529 builder->Add("adNewPasswordError", IDS_AD_PASSWORD_CHANGE_PASSWORDS_MISMATCH); |
522 } | 530 } |
523 | 531 |
524 void SigninScreenHandler::RegisterMessages() { | 532 void SigninScreenHandler::RegisterMessages() { |
525 AddCallback("authenticateUser", &SigninScreenHandler::HandleAuthenticateUser); | 533 AddCallback("authenticateUser", &SigninScreenHandler::HandleAuthenticateUser); |
526 AddCallback("launchIncognito", &SigninScreenHandler::HandleLaunchIncognito); | 534 AddCallback("launchIncognito", &SigninScreenHandler::HandleLaunchIncognito); |
527 AddCallback("showSupervisedUserCreationScreen", | 535 AddCallback("showSupervisedUserCreationScreen", |
528 &SigninScreenHandler::HandleShowSupervisedUserCreationScreen); | 536 &SigninScreenHandler::HandleShowSupervisedUserCreationScreen); |
529 AddCallback("launchPublicSession", | 537 AddCallback("launchPublicSession", |
530 &SigninScreenHandler::HandleLaunchPublicSession); | 538 &SigninScreenHandler::HandleLaunchPublicSession); |
531 AddRawCallback("offlineLogin", &SigninScreenHandler::HandleOfflineLogin); | 539 AddRawCallback("offlineLogin", &SigninScreenHandler::HandleOfflineLogin); |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1542 } | 1550 } |
1543 | 1551 |
1544 void SigninScreenHandler::OnFeedbackFinished() { | 1552 void SigninScreenHandler::OnFeedbackFinished() { |
1545 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI"); | 1553 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI"); |
1546 | 1554 |
1547 // Recreate user's cryptohome after the feedback is attempted. | 1555 // Recreate user's cryptohome after the feedback is attempted. |
1548 HandleResyncUserData(); | 1556 HandleResyncUserData(); |
1549 } | 1557 } |
1550 | 1558 |
1551 } // namespace chromeos | 1559 } // namespace chromeos |
OLD | NEW |