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

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

Issue 2764543002: MD Settings: Appearance page: Use home page polish (Closed)
Patch Set: Created 3 years, 9 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/appearance_page/appearance_page.js ('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/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 arraysize(localized_strings)); 295 arraysize(localized_strings));
296 html_source->AddString("androidAppsLearnMoreUrl", 296 html_source->AddString("androidAppsLearnMoreUrl",
297 chrome::kAndroidAppsLearnMoreURL); 297 chrome::kAndroidAppsLearnMoreURL);
298 } 298 }
299 #endif 299 #endif
300 300
301 void AddAppearanceStrings(content::WebUIDataSource* html_source, 301 void AddAppearanceStrings(content::WebUIDataSource* html_source,
302 Profile* profile) { 302 Profile* profile) {
303 LocalizedString localized_strings[] = { 303 LocalizedString localized_strings[] = {
304 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE}, 304 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE},
305 {"exampleDotCom", IDS_SETTINGS_EXAMPLE_DOT_COM}, 305 {"customWebAddress", IDS_SETTINGS_CUSTOM_WEB_ADDRESS},
306 {"enterCustomWebAddress", IDS_SETTINGS_ENTER_CUSTOM_WEB_ADDRESS},
307 {"homeButtonDisabled", IDS_SETTINGS_HOME_BUTTON_DISABLED},
306 {"themes", IDS_SETTINGS_THEMES}, 308 {"themes", IDS_SETTINGS_THEMES},
307 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 309 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
308 {"systemTheme", IDS_SETTINGS_SYSTEM_THEME}, 310 {"systemTheme", IDS_SETTINGS_SYSTEM_THEME},
309 {"useSystemTheme", IDS_SETTINGS_USE_SYSTEM_THEME}, 311 {"useSystemTheme", IDS_SETTINGS_USE_SYSTEM_THEME},
310 {"classicTheme", IDS_SETTINGS_CLASSIC_THEME}, 312 {"classicTheme", IDS_SETTINGS_CLASSIC_THEME},
311 {"useClassicTheme", IDS_SETTINGS_USE_CLASSIC_THEME}, 313 {"useClassicTheme", IDS_SETTINGS_USE_CLASSIC_THEME},
312 #else 314 #else
313 {"resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME}, 315 {"resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME},
314 #endif 316 #endif
315 {"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON}, 317 {"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON},
316 {"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR}, 318 {"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
317 {"homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP}, 319 {"homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP},
318 {"other", IDS_SETTINGS_OTHER},
319 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE}, 320 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE},
320 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL}, 321 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL},
321 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE}, 322 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE},
322 #if defined(OS_CHROMEOS) 323 #if defined(OS_CHROMEOS)
323 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP}, 324 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP},
324 {"setWallpaper", IDS_SETTINGS_SET_WALLPAPER}, 325 {"setWallpaper", IDS_SETTINGS_SET_WALLPAPER},
325 #endif 326 #endif
326 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 327 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
327 {"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS}, 328 {"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS},
328 #endif 329 #endif
(...skipping 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1984 1985
1985 #if defined(OS_CHROMEOS) 1986 #if defined(OS_CHROMEOS)
1986 chromeos::network_element::AddLocalizedStrings(html_source); 1987 chromeos::network_element::AddLocalizedStrings(html_source);
1987 #endif 1988 #endif
1988 policy_indicator::AddLocalizedStrings(html_source); 1989 policy_indicator::AddLocalizedStrings(html_source);
1989 1990
1990 html_source->SetJsonPath(kLocalizedStringsFile); 1991 html_source->SetJsonPath(kLocalizedStringsFile);
1991 } 1992 }
1992 1993
1993 } // namespace settings 1994 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/appearance_page/appearance_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698