Index: printing/backend/print_backend_cups.cc |
diff --git a/printing/backend/print_backend_cups.cc b/printing/backend/print_backend_cups.cc |
index e2c383ee52e554464acee6cf52798086ec2694e5..a164362ed4c4f2ac54aa210cdb29b78ff1f3516d 100644 |
--- a/printing/backend/print_backend_cups.cc |
+++ b/printing/backend/print_backend_cups.cc |
@@ -262,7 +262,7 @@ int PrintBackendCUPS::GetDests(cups_dest_t** dests) { |
FilePath PrintBackendCUPS::GetPPD(const char* name) { |
// cupsGetPPD returns a filename stored in a static buffer in CUPS. |
// Protect this code with lock. |
- static base::Lock ppd_lock; |
+ CR_DEFINE_STATIC_LOCAL(base::Lock, ppd_lock, ()); |
base::AutoLock ppd_autolock(ppd_lock); |
FilePath ppd_path; |
const char* ppd_file_path = NULL; |