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

Unified Diff: media/base/media_log.cc

Issue 9253006: Leak global atomicsequencenumber media_log_id to avoid atexit() handler being registered. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_log.cc
diff --git a/media/base/media_log.cc b/media/base/media_log.cc
index a9fabe2f21502a8a0c0e7b6deebb9b22bc1b80d7..43d9278748bc1a57e6348a53fe789c6284aaefc9 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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698