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

Side by Side Diff: printing/backend/print_backend_cups.cc

Issue 9271061: Cleanup: Remove static storage for variables in an unnamed namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style change. Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « media/audio/linux/alsa_output.cc ('k') | printing/printed_document.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) 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
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 base::LazyInstance<GcryptInitializer> g_gcrypt_initializer =
83 LAZY_INSTANCE_INITIALIZER; 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";
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 << ", HTTP error: " << http_error; 302 << ", HTTP error: " << http_error;
303 file_util::Delete(ppd_path, false); 303 file_util::Delete(ppd_path, false);
304 ppd_path.clear(); 304 ppd_path.clear();
305 } 305 }
306 } 306 }
307 } 307 }
308 return ppd_path; 308 return ppd_path;
309 } 309 }
310 310
311 } // namespace printing 311 } // namespace printing
OLDNEW
« no previous file with comments | « media/audio/linux/alsa_output.cc ('k') | printing/printed_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698