summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorxhwang <xhwang@chromium.org>2015-05-05 18:12:59 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-06 01:13:31 +0000
commit0290746d99bf50fa3fbcb8be2d3a389d18f16bc1 (patch)
tree4631d49a6a8eba6271d54b564ac78bd11a016ba1 /media
parentb7edbab518167dd1894aa2e34f57fc3149c06bf7 (diff)
downloadchromium_src-0290746d99bf50fa3fbcb8be2d3a389d18f16bc1.zip
chromium_src-0290746d99bf50fa3fbcb8be2d3a389d18f16bc1.tar.gz
chromium_src-0290746d99bf50fa3fbcb8be2d3a389d18f16bc1.tar.bz2
media: Use LazyInstance::Leaky where possible.
See https://www.chromium.org/developers/coding-style/important-abstractions-and-data-structures#TOC-Singleton-base::LazyInstance Since we don't do any work in the destructor, we should just leak these objects. R=dalecurtis Review URL: https://codereview.chromium.org/1123773003 Cr-Commit-Position: refs/heads/master@{#328457}
Diffstat (limited to 'media')
-rw-r--r--media/base/key_systems.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/base/key_systems.cc b/media/base/key_systems.cc
index f899925..dae0b18 100644
--- a/media/base/key_systems.cc
+++ b/media/base/key_systems.cc
@@ -289,7 +289,7 @@ class KeySystemsImpl : public KeySystems {
DISALLOW_COPY_AND_ASSIGN(KeySystemsImpl);
};
-static base::LazyInstance<KeySystemsImpl> g_key_systems =
+static base::LazyInstance<KeySystemsImpl>::Leaky g_key_systems =
LAZY_INSTANCE_INITIALIZER;
KeySystemsImpl* KeySystemsImpl::GetInstance() {