diff options
author | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 06:35:46 +0000 |
---|---|---|
committer | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 06:35:46 +0000 |
commit | 01483ce777d186bb5d0b477a7f87f974aa2e5a03 (patch) | |
tree | 367474f5338d4c457f81689e034cc04db9ef9bcb /media/base/media_log.cc | |
parent | bc514050e8a6b0692ac52007c2fa0eccfce55789 (diff) | |
download | chromium_src-01483ce777d186bb5d0b477a7f87f974aa2e5a03.zip chromium_src-01483ce777d186bb5d0b477a7f87f974aa2e5a03.tar.gz chromium_src-01483ce777d186bb5d0b477a7f87f974aa2e5a03.tar.bz2 |
Leak global atomicsequencenumber media_log_id to avoid atexit() handler being registered.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/9253006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118071 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/media_log.cc')
-rw-r--r-- | media/base/media_log.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/media/base/media_log.cc b/media/base/media_log.cc index a9fabe2..43d9278 100644 --- a/media/base/media_log.cc +++ b/media/base/media_log.cc @@ -17,7 +17,9 @@ namespace media { // A count of all MediaLogs created on this render process. // Used to generate unique ids. -static base::LazyInstance<base::AtomicSequenceNumber> media_log_count = +static base::LazyInstance< + base::AtomicSequenceNumber, + base::LeakyLazyInstanceTraits<base::AtomicSequenceNumber> > media_log_count = LAZY_INSTANCE_INITIALIZER; const char* MediaLog::EventTypeToString(MediaLogEvent::Type type) { |