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

Unified Diff: printing/backend/print_backend.cc

Issue 1934013002: Enable the cups backend when --enable-native-cups is specified. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cupsFlag
Patch Set: Select the printing backends at runtime via --enable-native-cups Created 4 years, 6 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 | « printing/backend/print_backend.h ('k') | printing/backend/print_backend_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/print_backend.cc
diff --git a/printing/backend/print_backend.cc b/printing/backend/print_backend.cc
index f17983778d76a8998f02e801dc98d6e993210e3a..6d472e044b7385937d10f7b24f85d6bcaa2f1f25 100644
--- a/printing/backend/print_backend.cc
+++ b/printing/backend/print_backend.cc
@@ -4,6 +4,10 @@
#include "printing/backend/print_backend.h"
+namespace {
+bool g_native_cups_enabled = false;
+} // namespace
+
namespace printing {
PrinterBasicInfo::PrinterBasicInfo()
@@ -40,4 +44,14 @@ PrinterCapsAndDefaults::~PrinterCapsAndDefaults() {}
PrintBackend::~PrintBackend() {}
+// static
+bool PrintBackend::GetNativeCupsEnabled() {
+ return g_native_cups_enabled;
+}
+
+// static
+void PrintBackend::SetNativeCupsEnabled(bool enabled) {
+ g_native_cups_enabled = enabled;
+}
+
} // namespace printing
« no previous file with comments | « printing/backend/print_backend.h ('k') | printing/backend/print_backend_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698