OLD | NEW |
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 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1444 }; | 1444 }; |
1445 AddLocalizedStringsBulk(html_source, localized_strings, | 1445 AddLocalizedStringsBulk(html_source, localized_strings, |
1446 arraysize(localized_strings)); | 1446 arraysize(localized_strings)); |
1447 | 1447 |
1448 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); | 1448 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); |
1449 html_source->AddString("printingCloudPrintLearnMoreUrl", | 1449 html_source->AddString("printingCloudPrintLearnMoreUrl", |
1450 chrome::kCloudPrintLearnMoreURL); | 1450 chrome::kCloudPrintLearnMoreURL); |
1451 | 1451 |
1452 #if defined(OS_CHROMEOS) | 1452 #if defined(OS_CHROMEOS) |
1453 html_source->AddBoolean("showCupsPrintingFeatures", | 1453 html_source->AddBoolean("showCupsPrintingFeatures", |
1454 base::CommandLine::ForCurrentProcess()->HasSwitch( | 1454 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
1455 ::switches::kEnableNativeCups)); | 1455 ::switches::kDisableNativeCups)); |
1456 #endif | 1456 #endif |
1457 } | 1457 } |
1458 | 1458 |
1459 void AddPrivacyStrings(content::WebUIDataSource* html_source, | 1459 void AddPrivacyStrings(content::WebUIDataSource* html_source, |
1460 Profile* profile) { | 1460 Profile* profile) { |
1461 LocalizedString localized_strings[] = { | 1461 LocalizedString localized_strings[] = { |
1462 {"privacyPageTitle", IDS_SETTINGS_PRIVACY}, | 1462 {"privacyPageTitle", IDS_SETTINGS_PRIVACY}, |
1463 {"linkDoctorPref", IDS_SETTINGS_LINKDOCTOR_PREF}, | 1463 {"linkDoctorPref", IDS_SETTINGS_LINKDOCTOR_PREF}, |
1464 {"searchSuggestPref", IDS_SETTINGS_SUGGEST_PREF}, | 1464 {"searchSuggestPref", IDS_SETTINGS_SUGGEST_PREF}, |
1465 {"networkPredictionEnabled", | 1465 {"networkPredictionEnabled", |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2018 | 2018 |
2019 #if defined(OS_CHROMEOS) | 2019 #if defined(OS_CHROMEOS) |
2020 chromeos::network_element::AddLocalizedStrings(html_source); | 2020 chromeos::network_element::AddLocalizedStrings(html_source); |
2021 #endif | 2021 #endif |
2022 policy_indicator::AddLocalizedStrings(html_source); | 2022 policy_indicator::AddLocalizedStrings(html_source); |
2023 | 2023 |
2024 html_source->SetJsonPath(kLocalizedStringsFile); | 2024 html_source->SetJsonPath(kLocalizedStringsFile); |
2025 } | 2025 } |
2026 | 2026 |
2027 } // namespace settings | 2027 } // namespace settings |
OLD | NEW |