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

Side by Side 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, 5 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
« no previous file with comments | « printing/backend/print_backend.h ('k') | printing/backend/print_backend_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "printing/backend/print_backend.h" 5 #include "printing/backend/print_backend.h"
6 6
7 namespace {
8 bool g_native_cups_enabled = false;
9 } // namespace
10
7 namespace printing { 11 namespace printing {
8 12
9 PrinterBasicInfo::PrinterBasicInfo() 13 PrinterBasicInfo::PrinterBasicInfo()
10 : printer_status(0), 14 : printer_status(0),
11 is_default(false) {} 15 is_default(false) {}
12 16
13 PrinterBasicInfo::PrinterBasicInfo(const PrinterBasicInfo& other) = default; 17 PrinterBasicInfo::PrinterBasicInfo(const PrinterBasicInfo& other) = default;
14 18
15 PrinterBasicInfo::~PrinterBasicInfo() {} 19 PrinterBasicInfo::~PrinterBasicInfo() {}
16 20
(...skipping 16 matching lines...) Expand all
33 37
34 PrinterCapsAndDefaults::PrinterCapsAndDefaults() {} 38 PrinterCapsAndDefaults::PrinterCapsAndDefaults() {}
35 39
36 PrinterCapsAndDefaults::PrinterCapsAndDefaults( 40 PrinterCapsAndDefaults::PrinterCapsAndDefaults(
37 const PrinterCapsAndDefaults& other) = default; 41 const PrinterCapsAndDefaults& other) = default;
38 42
39 PrinterCapsAndDefaults::~PrinterCapsAndDefaults() {} 43 PrinterCapsAndDefaults::~PrinterCapsAndDefaults() {}
40 44
41 PrintBackend::~PrintBackend() {} 45 PrintBackend::~PrintBackend() {}
42 46
47 // static
48 bool PrintBackend::GetNativeCupsEnabled() {
49 return g_native_cups_enabled;
50 }
51
52 // static
53 void PrintBackend::SetNativeCupsEnabled(bool enabled) {
54 g_native_cups_enabled = enabled;
55 }
56
43 } // namespace printing 57 } // namespace printing
OLDNEW
« 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