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

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: use layout center, remove margin auto 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
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e7a9e6731e2368a6bf7f0831c31011ab393cadbe..a3b4ffcbfcaad5777652a59974d5ddfa6a87e990 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)
@@ -224,6 +225,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);
@@ -528,6 +545,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",
@@ -628,6 +647,7 @@ void AddLocalizedStrings(content::WebUIDataSource* html_source,
#endif
AddOnStartupStrings(html_source);
AddPrivacyStrings(html_source);
+ AddResetStrings(html_source);
AddSearchEnginesStrings(html_source);
AddSearchStrings(html_source);
#if !defined(OS_CHROMEOS)
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698