Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Unified Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 1418073008: MD Settings: Adding reset page Material UI dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove chrome.send call, needs more setup on the C++ side. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698