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: . 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 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1802 AddResetStrings(html_source); 1819 AddResetStrings(html_source);
1803 AddSearchEnginesStrings(html_source); 1820 AddSearchEnginesStrings(html_source);
1804 AddSearchInSettingsStrings(html_source); 1821 AddSearchInSettingsStrings(html_source);
1805 AddSearchStrings(html_source); 1822 AddSearchStrings(html_source);
1806 AddSiteSettingsStrings(html_source, profile); 1823 AddSiteSettingsStrings(html_source, profile);
1807 AddUsersStrings(html_source); 1824 AddUsersStrings(html_source);
1808 AddWebContentStrings(html_source); 1825 AddWebContentStrings(html_source);
1809 1826
1810 #if defined(OS_CHROMEOS) 1827 #if defined(OS_CHROMEOS)
1811 AddAccountUITweaksStrings(html_source, profile); 1828 AddAccountUITweaksStrings(html_source, profile);
1829 AddAndroidAppStrings(html_source);
1812 AddBluetoothStrings(html_source); 1830 AddBluetoothStrings(html_source);
1813 AddCrNetworkStrings(html_source); 1831 AddCrNetworkStrings(html_source);
1814 AddDateTimeStrings(html_source); 1832 AddDateTimeStrings(html_source);
1815 AddDeviceStrings(html_source); 1833 AddDeviceStrings(html_source);
1816 AddEasyUnlockStrings(html_source); 1834 AddEasyUnlockStrings(html_source);
1817 AddInternetStrings(html_source); 1835 AddInternetStrings(html_source);
1818 AddMultiProfilesStrings(html_source, profile); 1836 AddMultiProfilesStrings(html_source, profile);
1819 #else 1837 #else
1820 AddDefaultBrowserStrings(html_source); 1838 AddDefaultBrowserStrings(html_source);
1821 AddImportDataStrings(html_source); 1839 AddImportDataStrings(html_source);
1822 AddSystemStrings(html_source); 1840 AddSystemStrings(html_source);
1823 #endif 1841 #endif
1824 1842
1825 #if defined(USE_NSS_CERTS) 1843 #if defined(USE_NSS_CERTS)
1826 AddCertificateManagerStrings(html_source); 1844 AddCertificateManagerStrings(html_source);
1827 #endif 1845 #endif
1828 1846
1829 policy_indicator::AddLocalizedStrings(html_source); 1847 policy_indicator::AddLocalizedStrings(html_source);
1830 1848
1831 html_source->SetJsonPath(kLocalizedStringsFile); 1849 html_source->SetJsonPath(kLocalizedStringsFile);
1832 } 1850 }
1833 1851
1834 } // namespace settings 1852 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698