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 28a2e2a168fce471f4dc34ed6d39a5bb1bad3f0e..9440adc443cc870059a99765462f1648de1c7b1a 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 |
| @@ -38,6 +38,7 @@ void AddCommonStrings(content::WebUIDataSource* html_source) { |
| html_source->AddLocalizedString("advancedPageTitle", IDS_SETTINGS_ADVANCED); |
| html_source->AddLocalizedString("addLabel", IDS_ADD); |
| html_source->AddLocalizedString("learnMore", IDS_LEARN_MORE); |
| + html_source->AddLocalizedString("cancel", IDS_CANCEL); |
| } |
| #if defined(OS_CHROMEOS) |
| @@ -222,6 +223,22 @@ void AddDownloadsStrings(content::WebUIDataSource* html_source) { |
| "promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD); |
| } |
| +void AddResetStrings(content::WebUIDataSource* html_source) { |
| + html_source->AddLocalizedString( |
| + "resetPageTitle", IDS_RESET_PROFILE_SETTINGS_SECTION_TITLE); |
| + html_source->AddLocalizedString( |
| + "resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION); |
| + html_source->AddLocalizedString( |
| + "resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION); |
| + html_source->AddLocalizedString( |
| + "resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON); |
| + html_source->AddLocalizedString( |
| + "resetPageFeedback", IDS_RESET_PROFILE_SETTINGS_FEEDBACK); |
| + html_source->AddString( |
| + "resetPageLearnMoreUrl", |
| + chrome::kResetProfileSettingsLearnMoreURL); |
| +} |
| + |
| void AddDateTimeStrings(content::WebUIDataSource* html_source) { |
| html_source->AddLocalizedString( |
| "dateTimePageTitle", IDS_SETTINGS_DATE_TIME); |
| @@ -514,6 +531,8 @@ void AddSyncStrings(content::WebUIDataSource* html_source) { |
| IDS_SETTINGS_ENCRYPT_WITH_SYNC_PASSPHRASE_LEARN_MORE_LINK); |
| html_source->AddLocalizedString("useDefaultSettingsButton", |
| IDS_SETTINGS_USE_DEFAULT_SETTINGS_BUTTON); |
| + // TODO(dpapad): Remove this string and use IDS_CANCEL (see AddCommonStrings |
| + // at the top of this file). |
| html_source->AddLocalizedString("cancelButton", |
| IDS_SETTINGS_CANCEL_BUTTON); |
| html_source->AddLocalizedString("okButton", |
| @@ -605,6 +624,7 @@ void AddLocalizedStrings(content::WebUIDataSource* html_source, |
| #endif |
| AddDateTimeStrings(html_source); |
| AddDownloadsStrings(html_source); |
| + AddResetStrings(html_source); |
|
Dan Beam
2015/10/29 00:46:11
nit: in alpha order
dpapad
2015/10/29 01:33:10
Done.
|
| #if defined(OS_CHROMEOS) |
| AddInternetStrings(html_source); |
| #endif |