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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 localized_strings->SetString("cancel", l10n_util::GetStringUTF16(IDS_CANCEL)); | 491 localized_strings->SetString("cancel", l10n_util::GetStringUTF16(IDS_CANCEL)); |
492 localized_strings->SetString("browseAsGuest", | 492 localized_strings->SetString("browseAsGuest", |
493 l10n_util::GetStringUTF16(IDS_GO_INCOGNITO_BUTTON)); | 493 l10n_util::GetStringUTF16(IDS_GO_INCOGNITO_BUTTON)); |
494 localized_strings->SetString("signOutUser", | 494 localized_strings->SetString("signOutUser", |
495 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_SIGN_OUT)); | 495 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_SIGN_OUT)); |
496 | 496 |
497 // For AccountPickerScreen. | 497 // For AccountPickerScreen. |
498 localized_strings->SetString("screenType", "login-add-user"); | 498 localized_strings->SetString("screenType", "login-add-user"); |
499 localized_strings->SetString("highlightStrength", "normal"); | 499 localized_strings->SetString("highlightStrength", "normal"); |
500 localized_strings->SetString("title", | 500 localized_strings->SetString("title", |
501 l10n_util::GetStringUTF16(IDS_USER_MANAGER_SCREEN_TITLE)); | 501 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); |
502 localized_strings->SetString("passwordHint", | 502 localized_strings->SetString("passwordHint", |
503 l10n_util::GetStringUTF16(IDS_LOGIN_POD_EMPTY_PASSWORD_TEXT)); | 503 l10n_util::GetStringUTF16(IDS_LOGIN_POD_EMPTY_PASSWORD_TEXT)); |
504 localized_strings->SetString("podMenuButtonAccessibleName", | 504 localized_strings->SetString("podMenuButtonAccessibleName", |
505 l10n_util::GetStringUTF16(IDS_LOGIN_POD_MENU_BUTTON_ACCESSIBLE_NAME)); | 505 l10n_util::GetStringUTF16(IDS_LOGIN_POD_MENU_BUTTON_ACCESSIBLE_NAME)); |
506 localized_strings->SetString("podMenuRemoveItemAccessibleName", | 506 localized_strings->SetString("podMenuRemoveItemAccessibleName", |
507 l10n_util::GetStringUTF16( | 507 l10n_util::GetStringUTF16( |
508 IDS_LOGIN_POD_MENU_REMOVE_ITEM_ACCESSIBLE_NAME)); | 508 IDS_LOGIN_POD_MENU_REMOVE_ITEM_ACCESSIBLE_NAME)); |
509 localized_strings->SetString("removeUser", | 509 localized_strings->SetString("removeUser", |
510 l10n_util::GetStringUTF16(IDS_LOGIN_POD_USER_REMOVE_WARNING_BUTTON)); | 510 l10n_util::GetStringUTF16(IDS_LOGIN_POD_USER_REMOVE_WARNING_BUTTON)); |
511 localized_strings->SetString("passwordFieldAccessibleName", | 511 localized_strings->SetString("passwordFieldAccessibleName", |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 } else { | 650 } else { |
651 web_ui()->CallJavascriptFunction( | 651 web_ui()->CallJavascriptFunction( |
652 "cr.ui.Oobe.showSignInError", | 652 "cr.ui.Oobe.showSignInError", |
653 base::FundamentalValue(0), | 653 base::FundamentalValue(0), |
654 base::StringValue( | 654 base::StringValue( |
655 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING)), | 655 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING)), |
656 base::StringValue(""), | 656 base::StringValue(""), |
657 base::FundamentalValue(0)); | 657 base::FundamentalValue(0)); |
658 } | 658 } |
659 } | 659 } |
OLD | NEW |