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

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

Issue 2413623004: MD Settings: allow changing to GTK+ theme on Linux (Closed)
Patch Set: rejigger tests Created 4 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 unified diff | Download patch
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/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 base::DictionaryValue localized_values; 247 base::DictionaryValue localized_values;
248 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile); 248 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile);
249 html_source->AddLocalizedStrings(localized_values); 249 html_source->AddLocalizedStrings(localized_values);
250 } 250 }
251 #endif 251 #endif
252 252
253 void AddAppearanceStrings(content::WebUIDataSource* html_source) { 253 void AddAppearanceStrings(content::WebUIDataSource* html_source) {
254 LocalizedString localized_strings[] = { 254 LocalizedString localized_strings[] = {
255 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE}, 255 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE},
256 {"exampleDotCom", IDS_SETTINGS_EXAMPLE_DOT_COM}, 256 {"exampleDotCom", IDS_SETTINGS_EXAMPLE_DOT_COM},
257 {"theme", IDS_SETTINGS_THEME}, 257 {"themes", IDS_SETTINGS_THEMES},
258 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
259 {"systemTheme", IDS_SETTINGS_SYSTEM_THEME},
260 {"useSystemTheme", IDS_SETTINGS_USE_SYSTEM_THEME},
261 {"classicTheme", IDS_SETTINGS_CLASSIC_THEME},
262 {"useClassicTheme", IDS_SETTINGS_USE_CLASSIC_THEME},
263 #else
258 {"resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME}, 264 {"resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME},
265 #endif
259 {"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON}, 266 {"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON},
260 {"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR}, 267 {"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
261 {"homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP}, 268 {"homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP},
262 {"other", IDS_SETTINGS_OTHER}, 269 {"other", IDS_SETTINGS_OTHER},
263 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE}, 270 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE},
264 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL}, 271 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL},
265 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE}, 272 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE},
266 {"chooseFonts", IDS_SETTINGS_CHOOSE_FONTS}, 273 {"chooseFonts", IDS_SETTINGS_CHOOSE_FONTS},
267 #if defined(OS_CHROMEOS) 274 #if defined(OS_CHROMEOS)
268 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP}, 275 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP},
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 #endif 1718 #endif
1712 AddUsersStrings(html_source); 1719 AddUsersStrings(html_source);
1713 AddWebContentStrings(html_source); 1720 AddWebContentStrings(html_source);
1714 1721
1715 policy_indicator::AddLocalizedStrings(html_source); 1722 policy_indicator::AddLocalizedStrings(html_source);
1716 1723
1717 html_source->SetJsonPath(kLocalizedStringsFile); 1724 html_source->SetJsonPath(kLocalizedStringsFile);
1718 } 1725 }
1719 1726
1720 } // namespace settings 1727 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698