summaryrefslogtreecommitdiffstats
path: root/base/threading
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-23 22:56:41 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-23 22:56:41 +0000
commit9fc441643df5e17c19133a637c1a9d1a70fbb07c (patch)
tree6c4cdb1e8c1ff0b6b132187be94e9968e2c83da1 /base/threading
parent096b0317209cfa8ef79cbf9fb9351f00c1f60087 (diff)
downloadchromium_src-9fc441643df5e17c19133a637c1a9d1a70fbb07c.zip
chromium_src-9fc441643df5e17c19133a637c1a9d1a70fbb07c.tar.gz
chromium_src-9fc441643df5e17c19133a637c1a9d1a70fbb07c.tar.bz2
Add a convenience typedef LazyInstance<T>::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
Diffstat (limited to 'base/threading')
-rw-r--r--base/threading/watchdog.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/base/threading/watchdog.cc b/base/threading/watchdog.cc
index 0219817..d060655 100644
--- a/base/threading/watchdog.cc
+++ b/base/threading/watchdog.cc
@@ -21,8 +21,7 @@ namespace {
// on alarms from callers that specify old times.
// Lock for access of static data...
-LazyInstance<Lock, LeakyLazyInstanceTraits<Lock> > g_static_lock =
- LAZY_INSTANCE_INITIALIZER;
+LazyInstance<Lock>::Leaky g_static_lock = LAZY_INSTANCE_INITIALIZER;
// When did we last alarm and get stuck (for a while) in a debugger?
TimeTicks g_last_debugged_alarm_time;