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

Unified Diff: base/mac/scoped_nsexception_enabler.mm

Issue 9117038: Convert all remaining explicit LeakyLazyInstanceTraits users to ::Leaky (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: base/mac/scoped_nsexception_enabler.mm
diff --git a/base/mac/scoped_nsexception_enabler.mm b/base/mac/scoped_nsexception_enabler.mm
index 52bddb2bb6e25143682acb35f3882db80a37eae7..989878909a2296f1b8c813a7016999ad0b89e75f 100644
--- a/base/mac/scoped_nsexception_enabler.mm
+++ b/base/mac/scoped_nsexception_enabler.mm
@@ -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.
@@ -9,7 +9,6 @@
// To make the |g_exceptionsAllowed| declaration readable.
using base::LazyInstance;
-using base::LeakyLazyInstanceTraits;
using base::ThreadLocalBoolean;
// When C++ exceptions are disabled, the C++ library defines |try| and
@@ -24,7 +23,7 @@ using base::ThreadLocalBoolean;
namespace {
// Whether to allow NSExceptions to be raised on the current thread.
-LazyInstance<ThreadLocalBoolean, LeakyLazyInstanceTraits<ThreadLocalBoolean> >
+LazyInstance<ThreadLocalBoolean>::Leaky
g_exceptionsAllowed = LAZY_INSTANCE_INITIALIZER;
} // namespace

Powered by Google App Engine
This is Rietveld 408576698