From 9fc441643df5e17c19133a637c1a9d1a70fbb07c Mon Sep 17 00:00:00 2001 From: "fischman@chromium.org" Date: Mon, 23 Jan 2012 22:56:41 +0000 Subject: Add a convenience typedef LazyInstance::Leaky to avoid repeating T. Converted the first 20 or so hits for LeakyLazyInstanceTraits on codesearch to demonstrate the benefit at callsites. The real change is base/lazy_instance.h; everything else is example. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9192024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118754 0039d316-1c4b-4281-b951-d872f2087c98 --- printing/pdf_metafile_cg_mac.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'printing/pdf_metafile_cg_mac.cc') diff --git a/printing/pdf_metafile_cg_mac.cc b/printing/pdf_metafile_cg_mac.cc index bf2f68d..6ac1d6b 100644 --- a/printing/pdf_metafile_cg_mac.cc +++ b/printing/pdf_metafile_cg_mac.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -35,10 +35,8 @@ namespace { // single-process mode. TODO(avi): This Apple bug appears fixed in 10.7; when // 10.7 is the minimum required version for Chromium, remove this hack. -base::LazyInstance< - base::ThreadLocalPointer, - base::LeakyLazyInstanceTraits > > - thread_pdf_docs = LAZY_INSTANCE_INITIALIZER; +base::LazyInstance >::Leaky + thread_pdf_docs = LAZY_INSTANCE_INITIALIZER; } // namespace -- cgit v1.1