Index: content/browser/media/webrtc_internals.cc |
diff --git a/content/browser/media/webrtc_internals.cc b/content/browser/media/webrtc_internals.cc |
index 92ca83cc2f4b393dc81e0123d6a648cb10ddae7a..d8a0314466c3930839e820a09045db574754536c 100644 |
--- a/content/browser/media/webrtc_internals.cc |
+++ b/content/browser/media/webrtc_internals.cc |
@@ -22,6 +22,10 @@ using std::string; |
namespace content { |
namespace { |
+ |
+static base::LazyInstance<WebRTCInternals>::Leaky g_webrtc_internals = |
+ LAZY_INSTANCE_INITIALIZER; |
+ |
// Makes sure that |dict| has a ListValue under path "log". |
static base::ListValue* EnsureLogList(base::DictionaryValue* dict) { |
base::ListValue* log = NULL; |
@@ -61,7 +65,7 @@ WebRTCInternals::~WebRTCInternals() { |
} |
WebRTCInternals* WebRTCInternals::GetInstance() { |
- return Singleton<WebRTCInternals>::get(); |
+ return g_webrtc_internals.Pointer(); |
} |
void WebRTCInternals::OnAddPeerConnection(int render_process_id, |