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

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

Issue 2541923002: MD Settings: Add Google Play Store (Arc++) section (Closed)
Patch Set: Feedback Created 4 years 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 #endif 251 #endif
252 } 252 }
253 253
254 #if defined(OS_CHROMEOS) 254 #if defined(OS_CHROMEOS)
255 void AddAccountUITweaksStrings(content::WebUIDataSource* html_source, 255 void AddAccountUITweaksStrings(content::WebUIDataSource* html_source,
256 Profile* profile) { 256 Profile* profile) {
257 base::DictionaryValue localized_values; 257 base::DictionaryValue localized_values;
258 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile); 258 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile);
259 html_source->AddLocalizedStrings(localized_values); 259 html_source->AddLocalizedStrings(localized_values);
260 } 260 }
261
262 void AddAndroidAppStrings(content::WebUIDataSource* html_source) {
263 LocalizedString localized_strings[] = {
264 {"androidAppsPageTitle", IDS_SETTINGS_ANDROID_APPS_TITLE},
265 {"androidAppsEnabled", IDS_SETTINGS_ANDROID_APPS_ENABLE},
266 {"androidAppsManageApps", IDS_SETTINGS_ANDROID_APPS_MANAGE_APPS},
267 {"androidAppsLearnMore", IDS_SETTINGS_ANDROID_APPS_LEARN_MORE},
268 {"androidAppsDisableDialogTitle",
269 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_TITLE},
270 {"androidAppsDisableDialogMessage",
271 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_MESSAGE},
272 };
273 AddLocalizedStringsBulk(html_source, localized_strings,
274 arraysize(localized_strings));
275 html_source->AddString("androidAppsLearnMoreUrl",
276 chrome::kAndroidAppsLearnMoreURL);
277 }
261 #endif 278 #endif
262 279
263 void AddAppearanceStrings(content::WebUIDataSource* html_source, 280 void AddAppearanceStrings(content::WebUIDataSource* html_source,
264 Profile* profile) { 281 Profile* profile) {
265 LocalizedString localized_strings[] = { 282 LocalizedString localized_strings[] = {
266 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE}, 283 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE},
267 {"exampleDotCom", IDS_SETTINGS_EXAMPLE_DOT_COM}, 284 {"exampleDotCom", IDS_SETTINGS_EXAMPLE_DOT_COM},
268 {"themes", IDS_SETTINGS_THEMES}, 285 {"themes", IDS_SETTINGS_THEMES},
269 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 286 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
270 {"systemTheme", IDS_SETTINGS_SYSTEM_THEME}, 287 {"systemTheme", IDS_SETTINGS_SYSTEM_THEME},
(...skipping 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after
1803 AddResetStrings(html_source); 1820 AddResetStrings(html_source);
1804 AddSearchEnginesStrings(html_source); 1821 AddSearchEnginesStrings(html_source);
1805 AddSearchInSettingsStrings(html_source); 1822 AddSearchInSettingsStrings(html_source);
1806 AddSearchStrings(html_source); 1823 AddSearchStrings(html_source);
1807 AddSiteSettingsStrings(html_source, profile); 1824 AddSiteSettingsStrings(html_source, profile);
1808 AddUsersStrings(html_source); 1825 AddUsersStrings(html_source);
1809 AddWebContentStrings(html_source); 1826 AddWebContentStrings(html_source);
1810 1827
1811 #if defined(OS_CHROMEOS) 1828 #if defined(OS_CHROMEOS)
1812 AddAccountUITweaksStrings(html_source, profile); 1829 AddAccountUITweaksStrings(html_source, profile);
1830 AddAndroidAppStrings(html_source);
1813 AddBluetoothStrings(html_source); 1831 AddBluetoothStrings(html_source);
1814 AddCrNetworkStrings(html_source); 1832 AddCrNetworkStrings(html_source);
1815 AddDateTimeStrings(html_source); 1833 AddDateTimeStrings(html_source);
1816 AddDeviceStrings(html_source); 1834 AddDeviceStrings(html_source);
1817 AddEasyUnlockStrings(html_source); 1835 AddEasyUnlockStrings(html_source);
1818 AddInternetStrings(html_source); 1836 AddInternetStrings(html_source);
1819 AddMultiProfilesStrings(html_source, profile); 1837 AddMultiProfilesStrings(html_source, profile);
1820 #else 1838 #else
1821 AddDefaultBrowserStrings(html_source); 1839 AddDefaultBrowserStrings(html_source);
1822 AddImportDataStrings(html_source); 1840 AddImportDataStrings(html_source);
1823 AddSystemStrings(html_source); 1841 AddSystemStrings(html_source);
1824 #endif 1842 #endif
1825 1843
1826 #if defined(USE_NSS_CERTS) 1844 #if defined(USE_NSS_CERTS)
1827 AddCertificateManagerStrings(html_source); 1845 AddCertificateManagerStrings(html_source);
1828 #endif 1846 #endif
1829 1847
1830 policy_indicator::AddLocalizedStrings(html_source); 1848 policy_indicator::AddLocalizedStrings(html_source);
1831 1849
1832 html_source->SetJsonPath(kLocalizedStringsFile); 1850 html_source->SetJsonPath(kLocalizedStringsFile);
1833 } 1851 }
1834 1852
1835 } // namespace settings 1853 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698