OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include <dlfcn.h> | 9 #include <dlfcn.h> |
10 #include <errno.h> | 10 #include <errno.h> |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 if (!pgnutls_global_init) { | 72 if (!pgnutls_global_init) { |
73 LOG(ERROR) << "Could not find " << kGnuTlsInitFuncName | 73 LOG(ERROR) << "Could not find " << kGnuTlsInitFuncName |
74 << " in " << kGnuTlsFile; | 74 << " in " << kGnuTlsFile; |
75 return; | 75 return; |
76 } | 76 } |
77 if ((*pgnutls_global_init)() != 0) | 77 if ((*pgnutls_global_init)() != 0) |
78 LOG(ERROR) << "Gnutls initialization failed"; | 78 LOG(ERROR) << "Gnutls initialization failed"; |
79 } | 79 } |
80 }; | 80 }; |
81 | 81 |
82 static base::LazyInstance<GcryptInitializer> g_gcrypt_initializer( | 82 static base::LazyInstance<GcryptInitializer> g_gcrypt_initializer = |
83 base::LINKER_INITIALIZED); | 83 LAZY_INSTANCE_INITIALIZER; |
84 | 84 |
85 } // namespace | 85 } // namespace |
86 #endif // !defined(OS_MACOSX) | 86 #endif // !defined(OS_MACOSX) |
87 | 87 |
88 namespace printing { | 88 namespace printing { |
89 | 89 |
90 static const char kCUPSPrinterInfoOpt[] = "printer-info"; | 90 static const char kCUPSPrinterInfoOpt[] = "printer-info"; |
91 static const char kCUPSPrinterStateOpt[] = "printer-state"; | 91 static const char kCUPSPrinterStateOpt[] = "printer-state"; |
92 static const char kCUPSPrinterTypeOpt[] = "printer-type"; | 92 static const char kCUPSPrinterTypeOpt[] = "printer-type"; |
93 | 93 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 << ", HTTP error: " << http_error; | 301 << ", HTTP error: " << http_error; |
302 file_util::Delete(ppd_path, false); | 302 file_util::Delete(ppd_path, false); |
303 ppd_path.clear(); | 303 ppd_path.clear(); |
304 } | 304 } |
305 } | 305 } |
306 } | 306 } |
307 return ppd_path; | 307 return ppd_path; |
308 } | 308 } |
309 | 309 |
310 } // namespace printing | 310 } // namespace printing |
OLD | NEW |