Bug 1574457 - Remove unused variable in optimized Beta/Release builds in ServiceWorkerPrivate.cpp r=asuth

Differential Revision: https://phabricator.services.mozilla.com/D42380

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Perry Jiang 2019-08-17 01:14:08 +00:00
Родитель 0f75a619cc
Коммит 538903d0db
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -48,6 +48,7 @@
#include "mozilla/net/CookieSettings.h"
#include "mozilla/net/NeckoChannelParams.h"
#include "mozilla/Services.h"
#include "mozilla/DebugOnly.h"
#include "mozilla/StaticPrefs_dom.h"
#include "mozilla/Unused.h"
#include "nsIReferrerInfo.h"
@ -98,8 +99,13 @@ ServiceWorkerPrivate::ServiceWorkerPrivate(ServiceWorkerInfo* aInfo)
if (ServiceWorkerParentInterceptEnabled()) {
RefPtr<ServiceWorkerPrivateImpl> inner = new ServiceWorkerPrivateImpl(this);
nsresult rv = inner->Initialize();
MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv));
// Assert in all debug builds as well as non-debug Nightly and Dev Edition.
#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED
MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(inner->Initialize()));
#else
MOZ_ALWAYS_SUCCEEDS(inner->Initialize());
#endif
mInner = inner.forget();
}