Chromium Code Reviews| Index: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc |
| diff --git a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc |
| index d0ecd8610cc03faaeb444f46992a76ecfc50e7b9..be79e3af0295f7880b8f5dc8b63247de1bfb25ad 100644 |
| --- a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc |
| +++ b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc |
| @@ -7,6 +7,8 @@ |
| #include <string> |
| #include "base/command_line.h" |
| +#include "base/i18n/number_formatting.h" |
| +#include "base/strings/string_number_conversions.h" |
| #include "base/strings/utf_string_conversions.h" |
| #include "build/build_config.h" |
| #include "chrome/browser/browser_process.h" |
| @@ -745,6 +747,8 @@ void AddPeopleStrings(content::WebUIDataSource* html_source) { |
| {"manageSupervisedUsers", IDS_SETTINGS_PEOPLE_MANAGE_SUPERVISED_USERS}, |
| #if defined(OS_CHROMEOS) |
| {"enableScreenlock", IDS_SETTINGS_PEOPLE_ENABLE_SCREENLOCK}, |
| + {"pinKeyboardPlaceholderPin", IDS_PIN_KEYBOARD_HINT_TEXT_PIN}, |
|
jdufault
2016/06/28 23:06:10
Also export pinKeyboardPlaceholderPinKeyboard
sammiequon
2016/06/29 19:44:08
Done.
|
| + {"pinKeyboardClear", IDS_PIN_KEYBOARD_CLEAR}, |
| {"quickUnlockTitle", IDS_SETTINGS_PEOPLE_QUICK_UNLOCK_TITLE}, |
| {"quickUnlockConfirmLogin", IDS_SETTINGS_PEOPLE_QUICK_UNLOCK_CONFIRM_LOGIN}, |
| {"quickUnlockPasswordLabel", |
| @@ -847,6 +851,12 @@ void AddPeopleStrings(content::WebUIDataSource* html_source) { |
| AddLocalizedStringsBulk(html_source, localized_strings, |
| arraysize(localized_strings)); |
| + // Format numbers to be used on the pin keyboard. |
| + for (int j = 0; j <= 9; j++) { |
| + html_source->AddString("pinKeyboard" + base::IntToString(j), |
| + base::FormatNumber(int64_t{j})); |
| + } |
| + |
| html_source->AddString("autofillHelpURL", autofill::kHelpURL); |
| html_source->AddString("supervisedUsersUrl", |
| chrome::kLegacySupervisedUserManagementURL); |