OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/signin/user_manager_screen_handler.h" | 5 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/value_conversions.h" | 9 #include "base/value_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 localized_strings->SetString("cancel", l10n_util::GetStringUTF16(IDS_CANCEL)); | 493 localized_strings->SetString("cancel", l10n_util::GetStringUTF16(IDS_CANCEL)); |
494 localized_strings->SetString("browseAsGuest", | 494 localized_strings->SetString("browseAsGuest", |
495 l10n_util::GetStringUTF16(IDS_GO_INCOGNITO_BUTTON)); | 495 l10n_util::GetStringUTF16(IDS_GO_INCOGNITO_BUTTON)); |
496 localized_strings->SetString("signOutUser", | 496 localized_strings->SetString("signOutUser", |
497 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_SIGN_OUT)); | 497 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_SIGN_OUT)); |
498 | 498 |
499 // For AccountPickerScreen. | 499 // For AccountPickerScreen. |
500 localized_strings->SetString("screenType", "login-add-user"); | 500 localized_strings->SetString("screenType", "login-add-user"); |
501 localized_strings->SetString("highlightStrength", "normal"); | 501 localized_strings->SetString("highlightStrength", "normal"); |
502 localized_strings->SetString("title", | 502 localized_strings->SetString("title", |
503 l10n_util::GetStringUTF16(IDS_USER_MANAGER_SCREEN_TITLE)); | 503 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); |
504 localized_strings->SetString("passwordHint", | 504 localized_strings->SetString("passwordHint", |
505 l10n_util::GetStringUTF16(IDS_LOGIN_POD_EMPTY_PASSWORD_TEXT)); | 505 l10n_util::GetStringUTF16(IDS_LOGIN_POD_EMPTY_PASSWORD_TEXT)); |
506 localized_strings->SetString("podMenuButtonAccessibleName", | 506 localized_strings->SetString("podMenuButtonAccessibleName", |
507 l10n_util::GetStringUTF16(IDS_LOGIN_POD_MENU_BUTTON_ACCESSIBLE_NAME)); | 507 l10n_util::GetStringUTF16(IDS_LOGIN_POD_MENU_BUTTON_ACCESSIBLE_NAME)); |
508 localized_strings->SetString("podMenuRemoveItemAccessibleName", | 508 localized_strings->SetString("podMenuRemoveItemAccessibleName", |
509 l10n_util::GetStringUTF16( | 509 l10n_util::GetStringUTF16( |
510 IDS_LOGIN_POD_MENU_REMOVE_ITEM_ACCESSIBLE_NAME)); | 510 IDS_LOGIN_POD_MENU_REMOVE_ITEM_ACCESSIBLE_NAME)); |
511 localized_strings->SetString("removeUser", | 511 localized_strings->SetString("removeUser", |
512 l10n_util::GetStringUTF16(IDS_LOGIN_POD_USER_REMOVE_WARNING_BUTTON)); | 512 l10n_util::GetStringUTF16(IDS_LOGIN_POD_USER_REMOVE_WARNING_BUTTON)); |
513 localized_strings->SetString("passwordFieldAccessibleName", | 513 localized_strings->SetString("passwordFieldAccessibleName", |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 } else { | 652 } else { |
653 web_ui()->CallJavascriptFunction( | 653 web_ui()->CallJavascriptFunction( |
654 "cr.ui.Oobe.showSignInError", | 654 "cr.ui.Oobe.showSignInError", |
655 base::FundamentalValue(0), | 655 base::FundamentalValue(0), |
656 base::StringValue( | 656 base::StringValue( |
657 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING)), | 657 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING)), |
658 base::StringValue(""), | 658 base::StringValue(""), |
659 base::FundamentalValue(0)); | 659 base::FundamentalValue(0)); |
660 } | 660 } |
661 } | 661 } |
OLD | NEW |