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

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

Issue 1578353003: [MD settings] Appearance settings strings mocks changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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.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/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 base::DictionaryValue localized_values; 96 base::DictionaryValue localized_values;
97 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile); 97 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile);
98 html_source->AddLocalizedStrings(localized_values); 98 html_source->AddLocalizedStrings(localized_values);
99 } 99 }
100 #endif 100 #endif
101 101
102 void AddAppearanceStrings(content::WebUIDataSource* html_source) { 102 void AddAppearanceStrings(content::WebUIDataSource* html_source) {
103 html_source->AddLocalizedString( 103 html_source->AddLocalizedString(
104 "appearancePageTitle", IDS_SETTINGS_APPEARANCE); 104 "appearancePageTitle", IDS_SETTINGS_APPEARANCE);
105 html_source->AddLocalizedString( 105 html_source->AddLocalizedString(
106 "exampleDotCom", IDS_SETTINGS_EXAMPLE_DOT_COM);
107 html_source->AddLocalizedString(
106 "setWallpaper", IDS_SETTINGS_SET_WALLPAPER); 108 "setWallpaper", IDS_SETTINGS_SET_WALLPAPER);
107 html_source->AddLocalizedString( 109 html_source->AddLocalizedString(
108 "getThemes", IDS_SETTINGS_THEMES); 110 "getThemes", IDS_SETTINGS_THEMES);
109 html_source->AddLocalizedString( 111 html_source->AddLocalizedString(
110 "resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME); 112 "resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME);
111 html_source->AddLocalizedString( 113 html_source->AddLocalizedString(
112 "showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON); 114 "showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON);
113 html_source->AddLocalizedString( 115 html_source->AddLocalizedString(
114 "showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR); 116 "showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR);
115 html_source->AddLocalizedString( 117 html_source->AddLocalizedString(
116 "homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP); 118 "homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP);
117 html_source->AddLocalizedString( 119 html_source->AddLocalizedString(
118 "openThisPage", IDS_SETTINGS_OPEN_THIS_PAGE); 120 "other", IDS_SETTINGS_OTHER);
119 html_source->AddLocalizedString( 121 html_source->AddLocalizedString(
120 "changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE); 122 "changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE);
121 html_source->AddLocalizedString( 123 html_source->AddLocalizedString(
122 "themesGalleryUrl", IDS_THEMES_GALLERY_URL); 124 "themesGalleryUrl", IDS_THEMES_GALLERY_URL);
123 html_source->AddLocalizedString( 125 html_source->AddLocalizedString(
124 "chooseFromWebStore", IDS_SETTINGS_WEB_STORE); 126 "chooseFromWebStore", IDS_SETTINGS_WEB_STORE);
125 } 127 }
126 128
127 #if defined(OS_CHROMEOS) 129 #if defined(OS_CHROMEOS)
128 void AddBluetoothStrings(content::WebUIDataSource* html_source) { 130 void AddBluetoothStrings(content::WebUIDataSource* html_source) {
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 AddSiteSettingsStrings(html_source); 865 AddSiteSettingsStrings(html_source);
864 AddUsersStrings(html_source); 866 AddUsersStrings(html_source);
865 AddWebContentStrings(html_source); 867 AddWebContentStrings(html_source);
866 868
867 policy_indicator::AddLocalizedStrings(html_source); 869 policy_indicator::AddLocalizedStrings(html_source);
868 870
869 html_source->SetJsonPath(kLocalizedStringsFile); 871 html_source->SetJsonPath(kLocalizedStringsFile);
870 } 872 }
871 873
872 } // namespace settings 874 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/appearance_page/appearance_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698