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