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

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

Issue 2475813002: Enable Native CUPS printing on Chrome OS. (Closed)
Patch Set: fix histogram entry Created 3 years, 8 months 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 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698