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 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1451 }; | 1451 }; |
1452 AddLocalizedStringsBulk(html_source, localized_strings, | 1452 AddLocalizedStringsBulk(html_source, localized_strings, |
1453 arraysize(localized_strings)); | 1453 arraysize(localized_strings)); |
1454 | 1454 |
1455 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); | 1455 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); |
1456 html_source->AddString("printingCloudPrintLearnMoreUrl", | 1456 html_source->AddString("printingCloudPrintLearnMoreUrl", |
1457 chrome::kCloudPrintLearnMoreURL); | 1457 chrome::kCloudPrintLearnMoreURL); |
1458 | 1458 |
1459 #if defined(OS_CHROMEOS) | 1459 #if defined(OS_CHROMEOS) |
1460 html_source->AddBoolean("showCupsPrintingFeatures", | 1460 html_source->AddBoolean("showCupsPrintingFeatures", |
1461 base::CommandLine::ForCurrentProcess()->HasSwitch( | 1461 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
1462 ::switches::kEnableNativeCups)); | 1462 ::switches::kDisableNativeCups)); |
1463 #endif | 1463 #endif |
1464 } | 1464 } |
1465 | 1465 |
1466 void AddPrivacyStrings(content::WebUIDataSource* html_source, | 1466 void AddPrivacyStrings(content::WebUIDataSource* html_source, |
1467 Profile* profile) { | 1467 Profile* profile) { |
1468 LocalizedString localized_strings[] = { | 1468 LocalizedString localized_strings[] = { |
1469 {"privacyPageTitle", IDS_SETTINGS_PRIVACY}, | 1469 {"privacyPageTitle", IDS_SETTINGS_PRIVACY}, |
1470 {"linkDoctorPref", IDS_SETTINGS_LINKDOCTOR_PREF}, | 1470 {"linkDoctorPref", IDS_SETTINGS_LINKDOCTOR_PREF}, |
1471 {"searchSuggestPref", IDS_SETTINGS_SUGGEST_PREF}, | 1471 {"searchSuggestPref", IDS_SETTINGS_SUGGEST_PREF}, |
1472 {"networkPredictionEnabled", | 1472 {"networkPredictionEnabled", |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2025 | 2025 |
2026 #if defined(OS_CHROMEOS) | 2026 #if defined(OS_CHROMEOS) |
2027 chromeos::network_element::AddLocalizedStrings(html_source); | 2027 chromeos::network_element::AddLocalizedStrings(html_source); |
2028 #endif | 2028 #endif |
2029 policy_indicator::AddLocalizedStrings(html_source); | 2029 policy_indicator::AddLocalizedStrings(html_source); |
2030 | 2030 |
2031 html_source->SetJsonPath(kLocalizedStringsFile); | 2031 html_source->SetJsonPath(kLocalizedStringsFile); |
2032 } | 2032 } |
2033 | 2033 |
2034 } // namespace settings | 2034 } // namespace settings |
OLD | NEW |