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

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 1841973004: [MD settings] theme name shown in sub-label, wallpaper chrome os only (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review changes Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/settings/basic_page/basic_page.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 base::DictionaryValue localized_values; 137 base::DictionaryValue localized_values;
138 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile); 138 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile);
139 html_source->AddLocalizedStrings(localized_values); 139 html_source->AddLocalizedStrings(localized_values);
140 } 140 }
141 #endif 141 #endif
142 142
143 void AddAppearanceStrings(content::WebUIDataSource* html_source) { 143 void AddAppearanceStrings(content::WebUIDataSource* html_source) {
144 LocalizedString localized_strings[] = { 144 LocalizedString localized_strings[] = {
145 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE}, 145 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE},
146 {"exampleDotCom", IDS_SETTINGS_EXAMPLE_DOT_COM}, 146 {"exampleDotCom", IDS_SETTINGS_EXAMPLE_DOT_COM},
147 {"setWallpaper", IDS_SETTINGS_SET_WALLPAPER},
148 {"getThemes", IDS_SETTINGS_THEMES}, 147 {"getThemes", IDS_SETTINGS_THEMES},
149 {"resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME}, 148 {"resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME},
150 {"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON}, 149 {"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON},
151 {"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR}, 150 {"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
152 {"homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP}, 151 {"homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP},
153 {"other", IDS_SETTINGS_OTHER}, 152 {"other", IDS_SETTINGS_OTHER},
154 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE}, 153 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE},
155 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL}, 154 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL},
156 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE}, 155 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE},
156 {"chooseFontsAndEncoding", IDS_SETTINGS_CHOOSE_FONTS_AND_ENCODING},
157 #if defined(OS_CHROMEOS)
157 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP}, 158 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP},
158 {"chooseFontsAndEncoding", IDS_SETTINGS_CHOOSE_FONTS_AND_ENCODING}, 159 {"setWallpaper", IDS_SETTINGS_SET_WALLPAPER},
160 #endif
159 }; 161 };
160 AddLocalizedStringsBulk(html_source, localized_strings, 162 AddLocalizedStringsBulk(html_source, localized_strings,
161 arraysize(localized_strings)); 163 arraysize(localized_strings));
162 } 164 }
163 165
164 #if defined(OS_CHROMEOS) 166 #if defined(OS_CHROMEOS)
165 void AddBluetoothStrings(content::WebUIDataSource* html_source) { 167 void AddBluetoothStrings(content::WebUIDataSource* html_source) {
166 LocalizedString localized_strings[] = { 168 LocalizedString localized_strings[] = {
167 {"bluetoothPageTitle", IDS_SETTINGS_BLUETOOTH}, 169 {"bluetoothPageTitle", IDS_SETTINGS_BLUETOOTH},
168 {"bluetoothAddDevicePageTitle", IDS_SETTINGS_BLUETOOTH_ADD_DEVICE}, 170 {"bluetoothAddDevicePageTitle", IDS_SETTINGS_BLUETOOTH_ADD_DEVICE},
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 #endif 905 #endif
904 AddUsersStrings(html_source); 906 AddUsersStrings(html_source);
905 AddWebContentStrings(html_source); 907 AddWebContentStrings(html_source);
906 908
907 policy_indicator::AddLocalizedStrings(html_source); 909 policy_indicator::AddLocalizedStrings(html_source);
908 910
909 html_source->SetJsonPath(kLocalizedStringsFile); 911 html_source->SetJsonPath(kLocalizedStringsFile);
910 } 912 }
911 913
912 } // namespace settings 914 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/basic_page/basic_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698