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 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1459 }; | 1459 }; |
1460 AddLocalizedStringsBulk(html_source, localized_strings, | 1460 AddLocalizedStringsBulk(html_source, localized_strings, |
1461 arraysize(localized_strings)); | 1461 arraysize(localized_strings)); |
1462 | 1462 |
1463 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); | 1463 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); |
1464 html_source->AddString("printingCloudPrintLearnMoreUrl", | 1464 html_source->AddString("printingCloudPrintLearnMoreUrl", |
1465 chrome::kCloudPrintLearnMoreURL); | 1465 chrome::kCloudPrintLearnMoreURL); |
1466 | 1466 |
1467 #if defined(OS_CHROMEOS) | 1467 #if defined(OS_CHROMEOS) |
1468 html_source->AddBoolean("showCupsPrintingFeatures", | 1468 html_source->AddBoolean("showCupsPrintingFeatures", |
1469 base::CommandLine::ForCurrentProcess()->HasSwitch( | 1469 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
1470 ::switches::kEnableNativeCups)); | 1470 ::switches::kDisableNativeCups)); |
1471 #endif | 1471 #endif |
1472 } | 1472 } |
1473 | 1473 |
1474 void AddPrivacyStrings(content::WebUIDataSource* html_source, | 1474 void AddPrivacyStrings(content::WebUIDataSource* html_source, |
1475 Profile* profile) { | 1475 Profile* profile) { |
1476 LocalizedString localized_strings[] = { | 1476 LocalizedString localized_strings[] = { |
1477 {"privacyPageTitle", IDS_SETTINGS_PRIVACY}, | 1477 {"privacyPageTitle", IDS_SETTINGS_PRIVACY}, |
1478 {"linkDoctorPref", IDS_SETTINGS_LINKDOCTOR_PREF}, | 1478 {"linkDoctorPref", IDS_SETTINGS_LINKDOCTOR_PREF}, |
1479 {"searchSuggestPref", IDS_SETTINGS_SUGGEST_PREF}, | 1479 {"searchSuggestPref", IDS_SETTINGS_SUGGEST_PREF}, |
1480 {"networkPredictionEnabled", | 1480 {"networkPredictionEnabled", |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2033 | 2033 |
2034 #if defined(OS_CHROMEOS) | 2034 #if defined(OS_CHROMEOS) |
2035 chromeos::network_element::AddLocalizedStrings(html_source); | 2035 chromeos::network_element::AddLocalizedStrings(html_source); |
2036 #endif | 2036 #endif |
2037 policy_indicator::AddLocalizedStrings(html_source); | 2037 policy_indicator::AddLocalizedStrings(html_source); |
2038 | 2038 |
2039 html_source->SetJsonPath(kLocalizedStringsFile); | 2039 html_source->SetJsonPath(kLocalizedStringsFile); |
2040 } | 2040 } |
2041 | 2041 |
2042 } // namespace settings | 2042 } // namespace settings |
OLD | NEW |