From 1def9c5ba79fe57fe600556a38172459933b0974 Mon Sep 17 00:00:00 2001 From: Bryce Van Dyk Date: Tue, 9 Apr 2019 15:05:01 +0000 Subject: [PATCH] Bug 1540136 - P1: Log more info in ChromiumCDMProxy dtor and Shutdown. r=cpearce Also remove unneeded MOZ_COUNT_[CTOR|DTOR] macros. We already get similar functionality from NS_INLINE_DECL_THREADSAFE_REFCOUNTING. Differential Revision: https://phabricator.services.mozilla.com/D26204 --HG-- extra : moz-landing-system : lando --- dom/media/gmp/ChromiumCDMProxy.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dom/media/gmp/ChromiumCDMProxy.cpp b/dom/media/gmp/ChromiumCDMProxy.cpp index 0c3dea377cfb..56a0cfce3000 100644 --- a/dom/media/gmp/ChromiumCDMProxy.cpp +++ b/dom/media/gmp/ChromiumCDMProxy.cpp @@ -29,10 +29,11 @@ ChromiumCDMProxy::ChromiumCDMProxy(dom::MediaKeys* aKeys, mCDMMutex("ChromiumCDMProxy"), mGMPThread(GetGMPAbstractThread()) { MOZ_ASSERT(NS_IsMainThread()); - MOZ_COUNT_CTOR(ChromiumCDMProxy); } -ChromiumCDMProxy::~ChromiumCDMProxy() { MOZ_COUNT_DTOR(ChromiumCDMProxy); } +ChromiumCDMProxy::~ChromiumCDMProxy() { + EME_LOG("ChromiumCDMProxy::~ChromiumCDMProxy(this=%p)", this); +} void ChromiumCDMProxy::Init(PromiseId aPromiseId, const nsAString& aOrigin, const nsAString& aTopLevelOrigin, @@ -305,7 +306,7 @@ void ChromiumCDMProxy::RemoveSession(const nsAString& aSessionId, void ChromiumCDMProxy::Shutdown() { MOZ_ASSERT(NS_IsMainThread()); - EME_LOG("ChromiumCDMProxy::Shutdown(this=%p)", this); + EME_LOG("ChromiumCDMProxy::Shutdown(this=%p) mCDM=%p", this, mCDM.get()); mKeys.Clear(); RefPtr cdm; {