OLD | NEW |
---|---|
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 static bool native_cups_enabled = false; | |
Lei Zhang
2016/06/29 00:22:31
You don't need static in an anonymous namespace.
Lei Zhang
2016/06/29 00:22:31
g_native_cups_enabled
skau
2016/06/29 00:40:16
Done.
skau
2016/06/29 00:40:17
Done.
| |
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 Loading... | |
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 bool PrintBackend::GetNativeCupsEnabled() { | |
Lei Zhang
2016/06/29 00:22:31
Add: // static
above this line, same for SetNative
skau
2016/06/29 00:40:17
Done.
| |
48 return native_cups_enabled; | |
49 } | |
50 | |
51 void PrintBackend::SetNativeCupsEnabled(bool enabled) { | |
52 native_cups_enabled = enabled; | |
53 } | |
54 | |
43 } // namespace printing | 55 } // namespace printing |
OLD | NEW |