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

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

Issue 1162293005: Settings: Add initial implementation of Appearance page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 c0fcd26b615862a06da0f2a38e9f9543da0ef844..d7921442037e0ba0f17feb617154ef8a8817e312 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
@@ -72,6 +72,17 @@ void AddA11yStrings(content::WebUIDataSource* html_source) {
IDS_SETTINGS_ACCESSIBILITY_ON_SCREEN_KEYBOARD_LABEL);
}
+void AddAppearanceStrings(content::WebUIDataSource* html_source) {
+ html_source->AddLocalizedString(
+ "appearancePageTitle", IDS_MD_SETTINGS_APPEARANCE_PAGE_TITLE);
+ html_source->AddLocalizedString(
+ "appearanceShowHomeButtonLabel",
Kyle Horimoto 2015/06/02 01:17:30 nit: Too far indented, and the one below is even m
James Hawkins 2015/06/02 16:42:25 Done.
+ IDS_MD_SETTINGS_APPEARANCE_SHOW_HOME_BUTTON_LABEL);
+ html_source->AddLocalizedString(
+ "appearanceShowBookmarksBarLabel",
+ IDS_MD_SETTINGS_APPEARANCE_SHOW_BOOKMARKS_BAR_LABEL);
+}
+
void AddDownloadsStrings(content::WebUIDataSource* html_source) {
html_source->AddLocalizedString(
"downloadsPageTitle", IDS_MD_SETTINGS_DOWNLOADS_PAGE_TITLE);
@@ -153,6 +164,7 @@ namespace settings {
void AddLocalizedStrings(content::WebUIDataSource* html_source) {
AddA11yStrings(html_source);
+ AddAppearanceStrings(html_source);
AddDownloadsStrings(html_source);
AddDateTimeStrings(html_source);
#if defined(OS_CHROMEOS)

Powered by Google App Engine
This is Rietveld 408576698