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

Unified Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2295533002: [CUPS] Put the CUPS settings UI behind a command line flag --enable-native-cups. (Closed)
Patch Set: Fix the trybot failure Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/settings/printing_page/printing_page.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
diff --git a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
index c6aa8314967f1ce2e1be69d8efc2ca49352f1aa4..4cd73bbbad602bcdd033704150137312ffc6c33b 100644
--- a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
@@ -30,6 +30,7 @@
#include "ash/common/system/chromeos/devicetype_utils.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/ui/webui/chromeos/ui_account_tweaks.h"
+#include "chrome/common/chrome_switches.h"
#include "chromeos/chromeos_switches.h"
#include "components/user_manager/user.h"
#include "components/user_manager/user_manager.h"
@@ -1012,6 +1013,12 @@ void AddPrintingStrings(content::WebUIDataSource* html_source) {
html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL);
html_source->AddString("printingCloudPrintLearnMoreUrl",
chrome::kCloudPrintLearnMoreURL);
+
+#if defined(OS_CHROMEOS)
+ html_source->AddBoolean("showCupsPrintingFeatures",
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ ::switches::kEnableNativeCups));
+#endif
}
void AddPrivacyStrings(content::WebUIDataSource* html_source) {
« no previous file with comments | « chrome/browser/resources/settings/printing_page/printing_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698