Change WebRTCInternals::GetInstance() to use a leaky LazyInstance.
commit8ad274252338620049d06e533ba6a671c7847825
authormarshall <marshall@chromium.org>
Fri, 19 Sep 2014 18:53:00 +0000 (19 11:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 19 Sep 2014 18:53:16 +0000 (19 18:53 +0000)
treea4079f686c013c515a7bf6aa3fd56b101533ca13
parent25e15c8049c46c045188754ad5165219a7586bb1
Change WebRTCInternals::GetInstance() to use a leaky LazyInstance.

WebRTCInternals uses NotificationRegistrar which must be deleted on the UI thread. In cases where the UI thread is not the same as the main thread (like in Chromium Embedded Framework) the destruction of WebRTCInternals via AtExitManager at shutdown will cause a CalledOnValidThread() check failure. There's no particular reason why the object needs to be deleted at shutdown so just leak it instead.

BUG=none
TEST=none

Review URL: https://codereview.chromium.org/575283004

Cr-Commit-Position: refs/heads/master@{#295751}
content/browser/media/webrtc_internals.cc
content/browser/media/webrtc_internals.h